home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 010 / temple.arc / TEMPLE.BAS (.txt)
Encoding:
GW-BASIC  |  1980-01-01  |  54.0 KB  |  1,575 lines

  1. 10  N=VAL(MID$(TIME$,7,2))
  2. 20  RANDOMIZE N
  3. 30  CLS:SCREEN 2:SCREEN 0:OUT &H3D0,8: OUT &H3D1,3:COLOR 3,0,1
  4. 40  FOR A=60 TO 20 STEP -1
  5. 50  COLOR 2,0,1:LOCATE 5,A:PRINT "   _______    ":NEXT
  6. 60  FOR A=1 TO 20:LOCATE 6,A:PRINT "  /";:COLOR 3,0,1:PRINT "<UNK! {FEFE}><UNK! {FEFE}><UNK! {FEFE}><UNK! {FE22}>;:COLOR 2,0,1:PRINT "\   ":NEXT
  7. 70  FOR A=60 TO 20 STEP -1:LOCATE 7,A:PRINT " /";:COLOR 3,0,1:PRINT "<UNK! {FE22}>;:COLOR 15,0,1:PRINT "Fantasy";:COLOR 3,0,1:PRINT "<UNK! {FE22}>;:COLOR 2,0,1:PRINT "\  ":NEXT
  8. 80  FOR A=1 TO 20:LOCATE 8,A:PRINT " \";:COLOR 3,0,1:PRINT "<UNK! {FEFE}>";:COLOR 15,0,1:PRINT "Warez";:COLOR 3,0,1:PRINT "<UNK! {FEFE}>";:COLOR 2,0,1:PRINT "/  ":NEXT
  9. 90  FOR A=60 TO 20 STEP -1:LOCATE 9,A:PRINT "  \";:COLOR 3,0,1:PRINT "<UNK! {FEFE}>";:COLOR 15:PRINT "Inc";:COLOR 3:PRINT "<UNK! {FEFE}>";:COLOR 2,0,1:PRINT "/   ":NEXT
  10. 100  COLOR 2:FOR A=1 TO 20:LOCATE 10,A:PRINT "     \_/      "
  11. 110  NEXT
  12. 120  COLOR 12,0,1:FOR A=1 TO 8:LOCATE A,35:PRINT "Presents";:COLOR 31:PRINT ". . . .":COLOR 12:NEXT:COLOR 12
  13. 130  FOR A=1 TO 8:LOCATE A,35:PRINT  "                         "
  14. 140  NEXT
  15. 150  LOCATE 8,35:PRINT "Presents";:COLOR 31:PRINT ". . . ."
  16. 160  COLOR 15,0,1:PLAY"MST155O2L8A#A#O3L4CO2A#O3CL1DP5L10D"
  17. 170  LOCATE 5,20:PRINT "   POINTPOINTPOINTPOINTPOINTPOINTPOINT    "
  18. 180  LOCATE 6,20:PRINT "  CSRLINCSRLINCSRLINCSRLINCSRLINCSRLINCSRLINCSRLINCSRLIN   "
  19. 190  LOCATE 7,20:PRINT " CSRLINCSRLINWENDSmurfsCSRLINCSRLIN  "
  20. 200  LOCATE 8,20:PRINT " CSRLINCSRLINCSRLINWENDdieWENDCSRLINCSRLINCSRLIN  "
  21. 210  LOCATE 9,20:PRINT "  CSRLINCSRLINCSRLINWHILEWHILEWHILECSRLINCSRLINCSRLIN   "
  22. 220  LOCATE 10,20:PRINT "     CSRLINWHILECSRLIN      "
  23. 230  LOCATE 5,20:PRINT "              "
  24. 240  LOCATE 6,20:PRINT "              "
  25. 250  LOCATE 7,20:PRINT "              "
  26. 260  LOCATE 8,20:PRINT "              "
  27. 270  LOCATE 9,20:PRINT "              "
  28. 280  LOCATE 10,20:PRINT "              "
  29. 290  COLOR 12,0,1:LOCATE 8,35:PRINT "Presents";:COLOR 15:PRINT " . . .":COLOR 12
  30. 300  FOR A=35 TO 5 STEP-2:LOCATE 8,A:PRINT "Presents";:COLOR 31:PRINT " . . .":COLOR 12:NEXT
  31. 310  FOR A=70 TO 16 STEP-1:LOCATE 8,A:PRINT " ":NEXT
  32. 320  FOR A=8 TO 2 STEP -1:LOCATE A,5:PRINT "Presents";:COLOR 31,0,1:PRINT " . . .":LOCATE A,5:PRINT "                     "
  33. 330  COLOR 12:NEXT:COLOR 12
  34. 340  LOCATE 2,5:PRINT "Presents";:COLOR 31:PRINT " . . ."
  35. 350  COLOR 2:FOR A=1 TO 2:LOCATE 5,40:PRINT "-"
  36. 360  LOCATE 5,40:SOUND 32729,1:PRINT "\"
  37. 370  LOCATE 5,40:SOUND 32729,1:PRINT "CALL"
  38. 380  LOCATE 5,40:SOUND 32729,1:PRINT "/"
  39. 390  LOCATE 5,40:SOUND 32729,1:PRINT "-"
  40. 400  LOCATE 5,40:SOUND 32729,1:PRINT "\"
  41. 410  LOCATE 5,40:SOUND 32729,1:PRINT "CALL"
  42. 420  LOCATE 5,40:SOUND 32729,1:PRINT "/"
  43. 430  LOCATE 5,40:SOUND 32729,1:PRINT "-":NEXT :LOCATE 5,40:PRINT "A"
  44. 440  COLOR 1:PRINT "     POINT                     CSRLIN     POINT    POINT              POINTPOINT                   "
  45. 450  PRINT "     CSRLIN      POINTPOINTPOINT  POINT POINTPOINT   POINTPOINTPOINTCSRLIN     CSRLIN<0xDF!>POINT  CSRLIN POINT   POINT POINT POINTPOINT   POINT<0xDF!> POINT   POINT  POINTPOINTPOINT   POINTPOINTPOINT "
  46. 460  PRINT "     CSRLIN     CSRLIN   CSRLIN CSRLIN<0xDF!>  <0xDF!> CSRLIN   CSRLIN     CSRLIN  <0xDF!>POINTCSRLIN CSRLIN   CSRLIN CSRLIN<0xDF!>  <0xDF!>     CSRLIN   CSRLIN CSRLIN   <0xDF!> CSRLIN   <0xDF!>":PRINT "     CSRLINPOINTPOINTPOINTPOINT <0xDF!>POINTPOINTPOINT<0xDF!> CSRLIN     <0xDF!>POINTPOINTPOINT<0xDF!>     CSRLIN    CSRLIN <0xDF!>POINTPOINTPOINT<0xDF!> CSRLIN         <0xDF!>POINTPOINTPOINT<0xDF!> <0xDF!>POINTPOINTPOINT<0xDF!> <0xDF!>POINTPOINTPOINT<0xDF!>"
  47. 470  PRINT:PRINT :PRINT
  48. 480  COLOR 2:PRINT "                  -----------";:COLOR 3:PRINT "Great Empire of Melnibone";:COLOR 2:PRINT "----------"
  49. 490  COLOR 14:PRINT "                                                _"
  50. 500  PRINT "                                           ";:COLOR 1:PRINT "_____";:COLOR 14:PRINT " []\"
  51. 510  COLOR 7:PRINT "                       < < < < < < < < < < ";:COLOR 1:PRINT "_____";:COLOR 15:PRINT "[";:COLOR 12:PRINT ":*";:COLOR 15:PRINT "]";:COLOR 6:PRINT "######";:COLOR 14:PRINT "[";:COLOR 2:PRINT ">":COLOR 14
  52. 520  PRINT "                                  _             _[]/"
  53. 530  PRINT "                               /[] ";:COLOR 1:PRINT "_____"
  54. 540  COLOR 2:PRINT "                       <";:COLOR 14:PRINT "]";:COLOR 6:PRINT "######";:COLOR 15:PRINT "[";:COLOR 12:PRINT "*:";:COLOR 15:PRINT "]";:COLOR 9:PRINT "_____";:COLOR 7:PRINT "> > > > > > > > > > "
  55. 550  COLOR 14:PRINT "                               \[]_
  56. 560  PRINT "                                                                "
  57. 570  COLOR 2:PRINT "                  -----";:COLOR 11,0,1:PRINT "Call  the Dark Bay at (415) 490-3179";:COLOR 2:PRINT "-----"
  58. 580  'LOCATE 21,1:PRINT :PRINT :PRINT "Fantasy Warez Inc. is a fictionous name for all legal purposes. This progarm is                              publis domain software."
  59. 590  FOR A= 1 TO 20:LOCATE 11,33:COLOR 15:PRINT "> >";:COLOR 3:PRINT " Creation ";:COLOR 15:PRINT "< <"
  60. 600  LOCATE 16,1:COLOR 7:PRINT "                        < < < < < < < < < <"
  61. 610  LOCATE 16,1:COLOR 7:PRINT "                       < < < < < < < < < < "
  62. 620  LOCATE 19,41:COLOR 7:PRINT "> > > > > > > > > >"
  63. 630  LOCATE 19,41:COLOR 7:PRINT " > > > > > > > > > > "
  64. 640  LOCATE 11,33:COLOR 15:PRINT " > ":LOCATE 11,46:PRINT " < ":NEXT
  65. 650  GOTO 1000
  66. 660  KEY OFF
  67. 670  'N=VAL (MID$(TIME$,7,2))
  68. 680  'RANDOMIZE N
  69. 690  INPUT "Do you want graphics (Y/N)";ANS$
  70. 700  IF ANS$ = "y" GOTO 740
  71. 710  IF ANS$ = "Y" GOTO 740
  72. 720  IF ANS$="ARIOCH" GOTO 1400
  73. 730  GOTO 1020
  74. 740  SCREEN 1:CLS
  75. 750   CIRCLE (20,20),20
  76. 760  PAINT (30,30),2,3
  77. 770  CIRCLE (240,30),15
  78. 780  PAINT (240,30),1,3
  79. 790  PSET (60,125)
  80. 800  DRAW"e100;f100;l199"
  81. 810  LINE (360,125)-(0,360),,BF
  82. 820  PAINT (100,100),3
  83. 830  LINE (360,125)-(0,360),1,BF
  84. 840  LOCATE 16,19
  85. 850  PRINT "   "
  86. 860  FOR J = 1 TO 200
  87. 870  I=(RND*360)
  88. 880  F=(RND*120)
  89. 890  FOR R=1 TO 0 STEP -1
  90. 900  CIRCLE (I,F),R,3
  91. 910  NEXT
  92. 920  NEXT
  93. 930  LOCATE 22,11
  94. 940  PRINT "Congradulations!!!"
  95. 950  LOCATE 22,11
  96. 960  BEEP
  97. 970  FOR X = 200 TO 0 STEP -4
  98. 980  CIRCLE (160,100),X,,,,1
  99. 990  SCREEN 2:SCREEN 0:GOTO 10540
  100. 1000  SCREEN 2
  101. 1010  SCREEN 0
  102. 1020  CLS
  103. 1030  PRINT : COLOR 14,0,1
  104. 1040  FOR A=1 TO 18:LOCATE A,1:PRINT"                               by Lord NurTROFFcc":LOCATE A,1:PRINT "                                                  ":NEXT:LOCATE 18,1:PRINT "                               by Lord NurTROFFcc"
  105. 1050  COLOR 12:LOCATE 2,1:PRINT"            POINTPOINTPOINTPOINTPOINT POINTPOINTPOINTPOINT POINT   POINT POINTPOINTPOINTPOINT  POINT    POINTPOINTPOINTPOINT           POINTPOINTPOINT   POINTPOINTPOINTPOINT
  106. 1060  PRINT"              CSRLIN   CSRLIN    CSRLINCSRLIN CSRLINCSRLIN CSRLIN   CSRLIN CSRLIN    CSRLIN             CSRLIN   CSRLIN  CSRLIN
  107. 1070  PRINT"              CSRLIN   CSRLIN<0xDF!><0xDF!>  CSRLIN CSRLIN CSRLIN CSRLIN<0xDF!><0xDF!><0xDF!>  CSRLIN    CSRLIN<0xDF!><0xDF!>           CSRLIN   CSRLIN  CSRLIN<0xDF!><0xDF!>
  108. 1080  PRINT"              CSRLIN   CSRLINPOINTPOINTPOINT CSRLIN   CSRLIN CSRLIN     CSRLINPOINTPOINTPOINT CSRLINPOINTPOINTPOINT          <0xDF!>POINTPOINTPOINT<0xDF!>  CSRLIN
  109. 1090  PRINT:
  110. 1100  PRINT
  111. 1110  PRINT"                  POINT     POINTPOINTPOINT  POINTPOINTPOINTPOINTPOINT  POINT  POINT            POINTPOINTPOINTPOINTPOINTPOINT
  112. 1120  PRINT"                  CSRLIN    CSRLIN   CSRLIN   CSRLIN    CSRLIN  CSRLIN          POINT<0xDF!> CSRLIN  CSRLIN <0xDF!>POINT
  113. 1130  PRINT"                  CSRLIN    CSRLIN   CSRLIN   CSRLIN    CSRLIN<0xDF!><0xDF!>CSRLIN        POINT<0xDF!>   CSRLIN  CSRLIN   <0xDF!>POINT
  114. 1140  PRINT"                  CSRLINPOINTPOINTPOINT <0xDF!>POINTPOINTPOINT<0xDF!>   CSRLIN    CSRLIN  CSRLIN      POINTCSRLINPOINTPOINTPOINTPOINTPOINTCSRLINPOINTPOINTCSRLINPOINTPOINTPOINTPOINTPOINTCSRLINPOINT
  115. 1150  PRINT:COLOR 15,0,1
  116. 1160  FOR A=1 TO 32:LOCATE 13,A:PRINT"  VERSION 4.13":NEXT :FOR A=1 TO 33:LOCATE 13,A:PRINT " ":NEXT:COLOR 31:LOCATE 13,30:PRINT "    VERSION 4.13  "
  117. 1170  COLOR 3,0,1:PRINT "                              November 11, 1984
  118. 1180  COLOR 3,0,1:PRINT"              Suggested for use with printer and graphics board
  119. 1190  PRINT"
  120. 1200  PRINT "                           A Fantasy Warez Program"
  121. 1210  COLOR 14:PRINT"                               by Lord NurTROFFcc"
  122. 1220  'PRINT"                            (NurTROFFcc the Chaotic)
  123. 1230  PRINT:COLOR 10,0,1
  124. 1240  PRINT"                       of the Great Empire of Melnibone'":COLOR 3,0,1
  125. 1250  SOU=INT(RND*2+1)
  126. 1260  ON SOU GOTO 1270,1290
  127. 1270  PLAY"O1MFT155L2DL4EL2FDL1GG#"
  128. 1280  GOTO 1340
  129. 1290  FOR QWER= 220 TO 196 STEP-1
  130. 1300  SOUND QWER,1
  131. 1310  NEXT
  132. 1320  PLAY"O1MLT155L2GP10EP10L1F#"
  133. 1330  GOTO 1340
  134. 1340  PRINT
  135. 1350  PRINT "     Make sure that all commands are done in capitals.  For help type `H'.
  136. 1360  INPUT "                      Do you want instructions (Y/N)";ANS$
  137. 1370  IF ANS$="Y" GOTO 12600
  138. 1380  IF ANS$="y" GOTO 12600
  139. 1390  IF ANS$="ARIOCH" THEN MN=1
  140. 1400  REM
  141. 1410  REM    ****************************************************
  142. 1420  REM    *  WRITTEN BY JOHN BELEW FOR USE WITH THE I.B.M.   *
  143. 1430  REM    *            AND OTHER COMPATIBLE                  *
  144. 1440  REM    *        THANKS TO TSR FOR THE MONSTERS            *
  145. 1450  REM    * THANKS TO RECREATIONAL COMPUTING FOR THE ORIGINAL*
  146. 1460  REM    * PROGRAM          JUNE 29, 1984                   *
  147. 1470  REM    ****************************************************
  148. 1480  DEFINT A-Z
  149. 1490  DIM C$(34),I$(34),R$(4),W$(8),E$(8)
  150. 1500  DIM L(512),C(3,4),T(8),O(3),R(3)
  151. 1510  DEF FNA(Q)=1+INT(RND(1)*Q)
  152. 1520  DEF FNB(Q)=Q+8*((Q=9)-(Q=0))
  153. 1530  DEF FNC(Q)=-Q*(Q<19)-18*(Q>18)
  154. 1540  DEF FND(Q)=64*(Q-1)+8*(X-1)+Y
  155. 1550  DEF FNE(Q)=Q+100*(Q>99)
  156. 1560  COLOR 11,0,15:Y$="** Please answer yes or no":COLOR 3,0,1
  157. 1570  NG=0
  158. 1580  REM
  159. 1590  REM   INITIALIZE ARRAYS
  160. 1600  REM
  161. 1610  NG=NG+1
  162. 1620  Q=RND(1)
  163. 1630  RESTORE
  164. 1640  FOR Q=1 TO 34
  165. 1650  READ C$(Q),I$(Q)
  166. 1660  NEXT Q
  167. 1670  FOR Q=1 TO 512
  168. 1680  L(Q)=101
  169. 1690  NEXT Q
  170. 1700  FOR Q=1 TO 8
  171. 1710  READ W$(Q),E$(Q)
  172. 1720  NEXT Q
  173. 1730  FOR Q=1 TO 4
  174. 1740  READ R$(Q)
  175. 1750  NEXT Q
  176. 1760  IF NG > 1 GOTO 2080
  177. 1770  CLS
  178. 1780  PRINT "       KEYTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENCLOSE"
  179. 1790  PRINT "       TOTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENRANDOMIZE";:COLOR 27,0,1:PRINT "* * * THE TEMPLE OF LOTH * * *";:COLOR 3,0,1:PRINT "TOTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENRANDOMIZE"
  180. 1800  PRINT "       TOTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENRANDOMIZE"
  181. 1810  'PRINT  OPEN                                                                 OPEN
  182. 1820  PRINT "       OPEN                                                                 OPEN
  183. 1830  'GOSUB 9060
  184. 1840  PRINT "       OPEN      Many generations ago, during the great Elfin Wars  of the  OPEN
  185. 1850  PRINT "       OPEN   first age, there stood the majestic temple of the Drow.  The  OPEN
  186. 1860  PRINT "       OPEN   Drow are an evil race of elves dedicated to the  destruction  OPEN
  187. 1870  PRINT "       OPEN   of all elves but themselves. During this time they were rul-  OPEN
  188. 1880  PRINT "       OPEN   ed by the the evil priestess,Tar-Anclime, a great sorceress.  OPEN
  189. 1890  PRINT "       OPEN   Under the aid of her goddess Loth, she created ";:COLOR 11,0,1:PRINT"the Amulet of";:COLOR 3,0,1:PRINT"  OPEN"
  190. 1900  PRINT "       OPEN";:COLOR 11,0,1:PRINT"   Chaos";:COLOR 3,0,1:PRINT" which was to be used to aid her side in the final des-  OPEN
  191. 1910  PRINT "       OPEN   truction of their rivals. The Drow massed for The final con-  OPEN
  192. 1920  PRINT "       OPEN   flict but they were attacked by their rival forces and there  OPEN
  193. 1930  PRINT "       OPEN   they were utterly destroyed. Now thousands of years later it  OPEN
  194. 1940  PRINT "       OPEN   is said that in the  kingdom of Rhyl that the descendents of  OPEN
  195. 1950  PRINT "       OPEN   the Drow are massing. The Drow plan to return to claim their  OPEN
  196. 1960  PRINT "       OPEN   homeland to retrieve ";:COLOR 11,0,1:PRINT "the Amulet of Chaos";:COLOR 3,0,1:PRINT" so they can finally  OPEN
  197. 1970  PRINT "       OPEN   destroy the elves of good. Living in the village shadowed by  OPEN
  198. 1980  PRINT "       OPEN   now crumbling  temple, you have been  chosen to retrieve the  OPEN
  199. 1990  PRINT "       OPEN   Amulet  before the Drow  return so that it can be destroyed.  OPEN
  200. 2000  PRINT "       OPEN   There are many  dangers that live in the  mazes of the ruins  OPEN
  201. 2010  PRINT "       OPEN   such as powerful  and  magic  monsters.  It is even believed  OPEN
  202. 2020  PRINT "       OPEN   that the some Drow still live in ruins.";:COLOR 28,0,1:PRINT" BEWARE!!!";:COLOR 3,0,1:PRINT"             OPEN
  203. 2030  PRINT "       OPEN                                                                 OPEN
  204. 2040  PRINT "       TOTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENRANDOMIZE"
  205. 2050  PRINT "       TOTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENRANDOMIZE"
  206. 2060  SOUND 32729,600
  207. 2070  'PRINT "Wait one moment please while I stock the temple..."
  208. 2080  X=1 : Y=4
  209. 2090  L(FND(1))=2
  210. 2100  FOR Z=1 TO 7
  211. 2110  FOR Q1=1 TO 2
  212. 2120  Q=104
  213. 2130  GOSUB 11350
  214. 2140  L(FND(Z+1))=103
  215. 2150  NEXT Q1
  216. 2160  NEXT Z
  217. 2170  FOR Z=1 TO 8
  218. 2180  FOR Q=113 TO 124
  219. 2190  GOSUB 11350
  220. 2200  NEXT Q
  221. 2210  FOR Q1=1 TO 3
  222. 2220  FOR Q=105 TO 112
  223. 2230  GOSUB 11350
  224. 2240  NEXT Q
  225. 2250  Q=125
  226. 2260  GOSUB 11350
  227. 2270  NEXT Q1
  228. 2280  NEXT Z
  229. 2290  FOR Q=126 TO 133
  230. 2300  Z=FNA(8)
  231. 2310  GOSUB 11350
  232. 2320  NEXT Q
  233. 2330  Q=101
  234. 2340  FOR A=1 TO 3
  235. 2350  Z=FNA(8)
  236. 2360  GOSUB 11350
  237. 2370  C(A,1)=X
  238. 2380  C(A,3)=Z
  239. 2390  C(A,2)=Y
  240. 2400  C(A,4)=0
  241. 2410  NEXT A
  242. 2420  RC=0
  243. 2430  ST=2
  244. 2440  DX=8
  245. 2450  R$(3)="Man"
  246. 2460  Q=112+FNA(12)
  247. 2470  Z=FNA(8)
  248. 2480  GOSUB 11350
  249. 2490  R(1)=X
  250. 2500  R(2)=Y
  251. 2510  R(3)=Z
  252. 2520  Q=109
  253. 2530  Z=FNA(8)
  254. 2540  GOSUB 11350
  255. 2550  O(1)=X
  256. 2560  O(2)=Y
  257. 2570  O(3)=Z
  258. 2580  BF=0 : OT=8 : AV=0 : HT=0 : T=1 : VF=0 : LF=0
  259. 2590  TC=0 : GP!=60 : RF=0 : OF=0 : BL=0 : IQ=8 : SX=0
  260. 2600  FOR Q=1 TO 8
  261. 2610  T(Q)=0
  262. 2620  NEXT Q
  263. 2630  PRINT CHR$(7);
  264. 2640  CLS
  265. 2650  'PRINT:KEY ON:KEY 1,"Elf     "+CHR$(13):KEY 2,"Man      "+CHR$(13):KEY 3,"Dwarf     "+CHR$(13):KEY 4,"Hobbit  "+CHR$(13):KEY 5,"Male    "+CHR$(13):KEY 6,"Female    "+CHR$(13):KEY 7,"":KEY 8,"":KEY 9,"":KEY 10,""
  266. 2660  PRINT
  267. 2670  COLOR 11,0,1:PRINT "  You are in large room blinded by a very bright light.  All of the sudden you "
  268. 2680  PRINT "hear a booming voice which says, `You have been chosen bold one to be a valiant"
  269. 2690  PRINT "and brave  warrior of any race you desire.  You can choose to be an Elf, a Man,"
  270. 2700  PRINT "a Dwarf or a Hobbit.' Remember though, you only have 500 turns.":COLOR 3,0,1
  271. 2710  COLOR 3,0,1
  272. 2720  GOSUB 11590
  273. 2730  FOR Q=1 TO 4
  274. 2740  STR = INT(RND*10+2)
  275. 2750  DEX = INT(RND*10+2)
  276. 2760  IF LEFT$(R$(Q),1)=O$ THEN RC=Q : ST=STR*Q : DX=DEX*Q
  277. 2770  IF ST > 18 THEN ST=18
  278. 2780  IF DX > 18 THEN DX =18
  279. 2790  NEXT Q
  280. 2800  PRINT
  281. 2810  OT=OT+4*(RC=1)
  282. 2820  IF RC > 0 THEN R$(3)="Human" : GOTO 2850
  283. 2830  COLOR 11,0,15:PRINT "** That was incorrect. Please type E, D, M, OR H.":COLOR 3,0,1
  284. 2840  GOTO 2720
  285. 2850  PRINT "Which sex do you prefer";
  286. 2860  GOSUB 11610
  287. 2870  IF O$="M" THEN SX=1 : GOTO 2910
  288. 2880  IF O$="F" GOTO 2910
  289. 2890  COLOR 11,0,15:PRINT "** Cute ";R$(RC);", Real cute. Try M OR F.":COLOR 3,0,1
  290. 2900  GOTO 2850
  291. 2910  PRINT
  292. 2920  PRINT "OK, ";R$(RC);", you have the following attributes :"
  293. 2930  PRINT "Strength =";ST
  294. 2940  PRINT "Intelligence =";IQ
  295. 2950  PRINT "Dexterity =";DX
  296. 2960  PRINT "and";OT;"other points you allocate as you wish."
  297. 2970  PRINT
  298. 2980  Z$="Strength"
  299. 2990  GOSUB 11640
  300. 3000  ST=ST+Q
  301. 3010  IF OT=0 GOTO 3100
  302. 3020  Z$="Intelligence"
  303. 3030  GOSUB 11640
  304. 3040  IQ=IQ+Q
  305. 3050  IF OT=0 GOTO 3100
  306. 3060  Z$="Dexterity"
  307. 3070  GOSUB 11640
  308. 3080  DX=DX+Q
  309. 3090  'KEY 1,"Plate   "+CHR$(13):KEY 2,"Chain   "+CHR$(13):KEY 3,"Leather   "+CHR$(13):KEY 4,"Sword   "+CHR$(13):KEY 5,"Mace    "+CHR$(13):KEY 6,"Dagger    "+CHR$(13):KEY 7,"Nothing "+CHR$(13):KEY 8,"No      "+CHR$(13):KEY 9,"Yes       "+CHR$(13)
  310. 3100  PRINT "OK, ";R$(RC);", you find your self at a bazaar in a small village built in the "
  311. 3110  PRINT "shadow of a large and crumbling castle.  You have nothing save the clothes on "
  312. 3120  PRINT "your back and a purse containing 60gp's to buy your equipments with."
  313. 3130  Z$="Armor"
  314. 3140  GOSUB 11890
  315. 3150  AV=0 : WV=0 : FL=0 : WC=0
  316. 3160  PRINT "Plate Mail:30gp's Chainmail:20gp's Leather:10gp's Nothing:-
  317. 3170  GOSUB 11590
  318. 3180  IF O$="N" GOTO 3240
  319. 3190  AV=-3*(O$="P")-2*(O$="C")-(O$="L")
  320. 3200  IF AV > 0 GOTO 3240
  321. 3210  PRINT
  322. 3220  COLOR 11,0,15:PRINT "** Are you a ";R$(RC);" or ";C$(FNA(12)+12);"?":COLOR 3,0,1
  323. 3230  GOTO 3130
  324. 3240  AH=AV*7 : GP!=GP!-AV*10
  325. 3250  PRINT
  326. 3260  PRINT "OK, bold ";R$(RC);", you have";GP!;"gp's left."
  327. 3270  PRINT
  328. 3280  Z$="Weapons"
  329. 3290  GOSUB 11890
  330. 3300  PRINT "Sword:30gp's Mace:20gp's Dagger:10gp's Nothing:-"
  331. 3310  GOSUB 11590
  332. 3320  IF O$="N" GOTO 3380
  333. 3330  WV=-3*(O$="S")-2*(O$="M")-(O$="D")
  334. 3340  IF WV > 0 GOTO 3380
  335. 3350  PRINT 
  336. 3360  COLOR 11,0,15:PRINT "** Is your IQ really";IQ;"?":COLOR 3,0,1
  337. 3370  GOTO 3280
  338. 3380  GP!=GP!-WV*10
  339. 3390  IF GP! < 20 GOTO 3450
  340. 3400  PRINT
  341. 3410  PRINT "Do you want to buy a lamp for 20gp's";
  342. 3420  GOSUB 11610
  343. 3430  IF O$="Y" THEN LF=1 : GP!=GP!-20 : GOTO 3450
  344. 3440  IF O$ <> "N" THEN PRINT : PRINT Y$ : PRINT : GOTO 3410
  345. 3450  PRINT
  346. 3460  IF GP! < 1 THEN Q=0 : GOTO 3570
  347. 3470  PRINT "OK, ";R$(RC);", you have";GP!;"gold pieces left."
  348. 3480  PRINT
  349. 3490  INPUT "Flares give off light which allows you to see all the rooms around you.  At a   cost of 1gp each how many do you want to buy?";O$
  350. 3500  Q=VAL(O$)
  351. 3510  PRINT
  352. 3520  IF Q > 0 OR ASC(O$)=48 GOTO 3560
  353. 3530  COLOR 11,0,15:PRINT "** If you don't want any, just type 0.":COLOR 3,0,1
  354. 3540  PRINT
  355. 3550  GOTO 3490
  356. 3560  COLOR 11,0,15:IF Q > GP! THEN PRINT "** You can only afford";GP!;"." :COLOR 3,0,1: PRINT : GOTO 3490
  357. 3570  FL=FL+Q : GP!=GP!-Q
  358. 3580  X=1 : Y=4 : Z=1
  359. 3590  COLOR 27,0,15:PRINT "OK, ";R$(RC);", You are now entering the castle!":COLOR 3,0,1:
  360. 3600  GOTO 7090
  361. 3610  REM
  362. 3620  REM   MAIN PROCESSING LOOP
  363. 3630  REM
  364. 3640  T=T+1
  365. 3650  IF RF+OF > 0 GOTO 3780
  366. 3660  IF C(1,4) > T(1) THEN T=T+1
  367. 3670  IF C(2,4) > T(3) THEN GP!=GP!-FNA(5)
  368. 3680  IF GP! < 0 THEN GP!=0
  369. 3690  IF C(3,4) <= T(5) GOTO 3780
  370. 3700  A=X : B=Y : C=Z
  371. 3710  X=FNA(8) : Y=FNA(8) : Z=FNA(8)
  372. 3720  L(FND(Z))=FNE(L(FND(Z)))+100
  373. 3730  X=A : Y=B : Z=C
  374. 3740  IF L(FND(Z)) <> 1 GOTO 3780
  375. 3750  FOR Q=1 TO 3
  376. 3760  C(Q,4)=-(C(Q,1)=X)*(C(Q,2)=Y)*(C(Q,3)=Z)
  377. 3770  NEXT Q
  378. 3780  IF FNA(5) > 1 GOTO 4280
  379. 3790  PRINT
  380. 3800  PRINT "You ";
  381. 3810  Q=FNA(7)+BL
  382. 3820  IF Q > 7 THEN Q=4
  383. 3830  ON Q GOSUB 4130,3870,4110,3850,4150,4180,4200
  384. 3840  GOTO 4280
  385. 3850  PRINT "stepped on dragon @#*%!"
  386. 3860  RETURN
  387. 3870  PRINT "hear ";
  388. 3880  ON FNA(4) GOTO 3890,3950,4030,4060
  389. 3890  PRINT "a scream!"
  390. 3900  FOR I=2075 TO 1800 STEP-1
  391. 3910  SOUND I,0.1
  392. 3920  NEXT
  393. 3930  SOUND 32729,1
  394. 3940  RETURN
  395. 3950  PRINT "footsteps!"
  396. 3960  'FOR I=1 TO 5
  397. 3970  FOR J=40 TO 37 STEP-1
  398. 3980  SOUND J,1
  399. 3990  SOUND 32729,10
  400. 4000  'NEXT
  401. 4010  NEXT
  402. 4020  RETURN
  403. 4030  PRINT "a Wumpus!"
  404. 4040  PLAY "O0MST255L4AGP5AGP5AGP5AG
  405. 4050  RETURN
  406. 4060  PRINT "groans!"
  407. 4070  FOR I = 300 TO 37 STEP-1
  408. 4080  SOUND I,0.1
  409. 4090  NEXT
  410. 4100  RETURN
  411. 4110  PRINT "sneezed!"
  412. 4120  RETURN
  413. 4130  PRINT "see a bat fly by!"
  414. 4140  RETURN
  415. 4150  PRINT "hear a ";C$(12+FNA(13));" growling!"
  416. 4160  GOTO 4070
  417. 4170  RETURN
  418. 4180  PRINT "feel like you're being watched!"
  419. 4190  RETURN
  420. 4200  PRINT "hear faint rustling noises!"
  421. 4210  FOR Q=1 TO 200
  422. 4220  A = INT(RND*50+37)
  423. 4230  SOUND A,0.000999999
  424. 4240  'SOUND 32729,1
  425. 4250  NEXT
  426. 4260  SOUND 32729,1
  427. 4270  RETURN
  428. 4280  IF BL+T(4) <> 2 GOTO 4320
  429. 4290  PRINT
  430. 4300  PRINT C$(29);" cures your blindness!"
  431. 4310  BL=0
  432. 4320  IF BF+T(6) <> 2 GOTO 4360
  433. 4330  PRINT
  434. 4340  PRINT C$(31);" dissolves the book!"
  435. 4350  BF=0
  436. 4360  PRINT
  437. 4370  PRINT
  438. 4380  LOCATE 23,1:COLOR 3,0,1:PRINT "Enter your command:
  439. 4390  FOR ASD= 1 TO 2
  440. 4400  LOCATE 23,20:PRINT "-":SOUND 32767,1
  441. 4410  LOCATE 23,20:PRINT "\":SOUND 32767,1
  442. 4420  LOCATE 23,20:PRINT "CALL":SOUND 32767,1
  443. 4430  LOCATE 23,20:PRINT "/":SOUND 32767,1
  444. 4440  LOCATE 23,20:PRINT "-":SOUND 32767,1
  445. 4450  LOCATE 23,20:PRINT "\":SOUND 32767,1
  446. 4460  LOCATE 23,20:PRINT "CALL":SOUND 32767,1
  447. 4470  LOCATE 23,20:PRINT "/":SOUND 32767,1
  448. 4480  LOCATE 23,20:PRINT "-";:SOUND 32767,1
  449. 4490  'LINE INPUT O$
  450. 4500  NEXT
  451. 4510  LINE INPUT O$
  452. 4520  IF LEFT$(O$,2)="DR" GOTO 5900
  453. 4530  O$=LEFT$(O$,1)
  454. 4540  IF O$="N" GOTO 5020
  455. 4550  IF (O$="S") OR (O$="W") OR (O$="E") GOTO 5030
  456. 4560  IF O$="U" GOTO 5080
  457. 4570  IF O$="D" GOTO 5110
  458. 4580  IF O$="INKEY$" GOTO 11090
  459. 4590  IF O$="M" GOTO 5160
  460. 4600  IF O$="F" THEN ON BL+1 GOTO 5400,5160
  461. 4610  IF O$="L" THEN ON BL+1 GOTO 5660,5160
  462. 4620  IF O$="O" GOTO 6090
  463. 4630  IF O$="Q" GOTO 6960
  464. 4640  IF O$="G" THEN ON BL+1 GOTO 6550,5160
  465. 4650  IF O$="T" THEN PRINT : ON RF+1 GOTO 6810,6850
  466. 4660  IF O$="#" GOTO 11950
  467. 4670  IF O$ ="H" GOTO 4690
  468. 4680  GOTO 5000
  469. 4690  INPUT "Do you want a hard copy (Y/N)";HARD$
  470. 4700  IF HARD$ = "Y"  GOTO 12000
  471. 4710  PRINT"KEYTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENCLOSE
  472. 4720  PRINT"OPEN";:COLOR 27,0,1:PRINT "   *** TEMPLE OF LOTH'S COMMAND AND INFORMATION SUMMARY ***";:COLOR 3,0,1:PRINT "   OPEN
  473. 4730   PRINT "TOTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENRANDOMIZE"
  474. 4740   PRINT "OPEN The following commands available are:                        OPEN"
  475. 4750   PRINT "OPEN                                                              OPEN"
  476. 4760   PRINT "OPEN H/elp     N/orth    S/outh    E/ast     W/est     U/p        OPEN"
  477. 4770   PRINT "OPEN D/own     DR/ink    M/ap      F/lare    L/amp     O/pen      OPEN"
  478. 4780   PRINT "OPEN G/aze     T/eleport Q/uit     #/Score                        OPEN"
  479. 4790   PRINT "TOTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENRANDOMIZE"
  480. 4800   PRINT "OPEN The contents of the rooms are as follows:                    OPEN"
  481. 4810   PRINT "OPEN                                                              OPEN"
  482. 4820   PRINT "OPEN TAB( = empty room      B = book            C = chest            OPEN"
  483. 4830   PRINT "OPEN D = stairs down     OR = entrance/exit   <0x9F!> = flares           OPEN"
  484. 4840   PRINT "OPEN G = gold pieces     LPRINT = monster         < = crystal orb      OPEN"
  485. 4850   PRINT "OPEN P = magic pool      S = sinkhole        T = treasure         OPEN"
  486. 4860   PRINT "OPEN U = stairs up       * = Drow            CSRLIN = warp/amulet      OPEN"
  487. 4870   PRINT "TOTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENRANDOMIZE"
  488. 4880   PRINT "OPEN The benefits of having treasures are:                        OPEN"
  489. 4890   PRINT "OPEN                                                              OPEN"
  490. 4900   PRINT "OPEN RUBY RED - avoid lethargy    PALE PEARL - avoid leech        OPEN"
  491. 4910   PRINT "OPEN GREEN GEM - avoid forgetting  OPAL EYE - cure blindness      OPEN"
  492. 4920   PRINT "OPEN BLUE FLAME - dissolves books  NORN STONE - no benefit        OPEN"
  493. 4930   PRINT "OPEN PALANTIR - no benefit         SILMARIL - no benefit          OPEN"
  494. 4940   PRINT "TOTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENRANDOMIZE"
  495. 4950  PRINT
  496. 4960  PRINT "Press return when ready to resume, ";R$(RC);".";
  497. 4970  LINE INPUT "";O$
  498. 4980  GOTO 3640
  499. 4990  PRINT
  500. 5000  COLOR 11,0,15:PRINT "** Bold ";R$(RC);", that wasn't a valid command!":COLOR 3,0,1
  501. 5010  GOTO 3640
  502. 5020  IF L(FND(Z))=2 GOTO 10460
  503. 5030  X=X+(O$="N")-(O$="S")
  504. 5040  Y=Y+(O$="W")-(O$="E")
  505. 5050  X=FNB(X)
  506. 5060  Y=FNB(Y)
  507. 5070  GOTO 7090
  508. 5080  IF L(FND(Z))=3 THEN Z=Z-1 : GOTO 7090
  509. 5090  Z$="Up"
  510. 5100  GOTO 5130
  511. 5110  Z$="Down"
  512. 5120  IF L(FND(Z))=4 THEN Z=Z+1 : GOTO 7090
  513. 5130  PRINT
  514. 5140  COLOR 11,0,15:PRINT "** There are no stairs going ";Z$;" from here!":COLOR 3,0,1
  515. 5150  GOTO 3640
  516. 5160  IF BL <> 1 GOTO 5240
  517. 5170  PRINT
  518. 5180  COLOR 11,0,15:PRINT "** You can't see anything ";R$(RC);"!":COLOR 3,0,1
  519. 5190  GOTO 3640
  520. 5200  REM
  521. 5210  REM   DISPLAY MAP OF CURRENT CASTLE LEVEL
  522. 5220  REM
  523. 5230  COLOR 6,0,1
  524. 5240  PRINT
  525. 5250  A=X : B=Y
  526. 5260  FOR X=1 TO 8
  527. 5270  FOR Y=1 TO 8
  528. 5280  Q=L(FND(Z))
  529. 5290  IF Q > 99 THEN Q=Q-100:LET Q=34:REM TO HIDE ROOMS
  530. 5300  COLOR 6,0,1:IF X=A AND Y=B THEN PRINT "<";I$(Q);">  "; : GOTO 5320:COLOR 3,0,1
  531. 5310  COLOR 6,0,1:PRINT " ";I$(Q);"   ";:COLOR 3,0,1
  532. 5320  NEXT Y
  533. 5330  COLOR 3,0,1:PRINT
  534. 5340  PRINT
  535. 5350  NEXT X
  536. 5360  X=A : Y=B
  537. 5370  GOTO 5610
  538. 5380  COLOR 12,0,1:PRINT ") level";Z:COLOR 3,0,1
  539. 5390  GOTO 3640
  540. 5400  IF FL <> 0 GOTO 5460
  541. 5410  COLOR 11,0,15:PRINT "** You can't, your out of flares!":COLOR 3,0,1
  542. 5420  GOTO 3640
  543. 5430  REM
  544. 5440  REM   DISPLAY ADJACENT ROOM CONTENTS WITH FLARE
  545. 5450  REM
  546. 5460  PRINT
  547. 5470  FL=FL-1
  548. 5480  A=X : B=Y
  549. 5490  FOR Q1=A-1 TO A+1
  550. 5500  X=FNB(Q1)
  551. 5510  FOR Q2=B-1 TO B+1
  552. 5520  Y=FNB(Q2)
  553. 5530  Q=FNE(L(FND(Z)))
  554. 5540  L(FND(Z))=Q
  555. 5550  COLOR 12,0,1:PRINT " ";I$(Q);"   ";:COLOR 3,0,1
  556. 5560  NEXT Q2
  557. 5570  PRINT
  558. 5580  PRINT
  559. 5590  NEXT Q1
  560. 5600  X=A : Y=B
  561. 5610  GOSUB 11920
  562. 5620  GOTO 3640
  563. 5630  REM
  564. 5640  REM   DISPLAY CONTENTS OF ADJACENT ROOM WITH LAMP
  565. 5650  REM
  566. 5660  IF LF <> 0 GOTO 5700
  567. 5670  PRINT
  568. 5680  COLOR 11,0,15:PRINT "** You don't have a lamp, ";R$(RC);"!":COLOR 3,0,1
  569. 5690  GOTO 3640
  570. 5700  PRINT
  571. 5710  PRINT "Where do you want to shine the lamp (N,S,E,W)";
  572. 5720  GOSUB 11610
  573. 5730  A=X : B=Y
  574. 5740  X=FNB(X+(O$="N")-(O$="S"))
  575. 5750  Y=FNB(Y+(O$="W")-(O$="E"))
  576. 5760  IF A-X+B-Y <> 0 GOTO 5800
  577. 5770  PRINT
  578. 5780  COLOR 11,0,15:PRINT "** That's not a direction ";R$(RC);"!":COLOR 3,0,1
  579. 5790  GOTO 3640
  580. 5800  PRINT
  581. 5810  PRINT "The lamp shines into (";X;",";Y;") level";Z;"."
  582. 5820  PRINT
  583. 5830  L(FND(Z))=FNE(L(FND(Z)))
  584. 5840  PRINT "There you will find ";C$(L(FND(Z)));"."
  585. 5850  X=A : Y=B
  586. 5860  GOTO 3640
  587. 5870  REM
  588. 5880  REM   TAKE A DRINK FROM A POOL
  589. 5890  REM
  590. 5900  IF L(FND(Z))=5 GOTO 5940
  591. 5910  PRINT
  592. 5920  COLOR 11,0,15:PRINT "** There is no pool to drink from here!":COLOR 3,0,1
  593. 5930  GOTO 3640
  594. 5940  Q=FNA(8)
  595. 5950  PRINT
  596. 5960  PRINT "You take a drink and ";
  597. 5970  IF Q < 7 THEN PRINT "feel ";
  598. 5980  ON Q GOTO 5990,6000,6010,6020,6030,6040,6050,6070
  599. 5990  ST=FNC(ST+FNA(3)) : PRINT "stronger." : GOTO 3640
  600. 6000  ST=ST-FNA(3) :COLOR 15,0,1: PRINT "weaker.":COLOR 7,0,1 : ON (1-(ST<1)) GOTO 3640,10340
  601. 6010  IQ=FNC(IQ+FNA(3)) : PRINT "smarter." : GOTO 3640
  602. 6020  IQ=IQ-FNA(3) :COLOR 15,0,1:PRINT "dumber.":COLOR 3,0,1: ON (1-(IQ<1)) GOTO 3640,10340
  603. 6030  DX=FNC(DX+FNA(3)) : PRINT "faster." : GOTO 3640
  604. 6040  DX=DX-FNA(3) :COLOR 15,0,1: PRINT "clumsier." :COLOR 3,0,1: ON (1-(DX<1)) GOTO 3640,10340
  605. 6050  Q=FNA(4) : IF Q=RC GOTO 6050
  606. 6060  RC=Q : PRINT "become a ";R$(RC);"." : GOTO 3640
  607. 6070  SX=1-SX : PRINT "turn into a "; : IF SX=0 THEN PRINT "fe";
  608. 6080  PRINT "male ";R$(RC);"!" : GOTO 3640
  609. 6090  IF L(FND(Z)) <> 6 GOTO 6130
  610. 6100  PRINT
  611. 6110  PRINT "You open the chest and"
  612. 6120  GOTO 6390
  613. 6130  IF L(FND(Z)) <> 12 GOTO 6170
  614. 6140  PRINT
  615. 6150  PRINT "You open the book and"
  616. 6160  GOTO 6200
  617. 6170  PRINT
  618. 6180  COLOR 11,0,15:PRINT "** there is nothing to open here.":COLOR 3,0,1
  619. 6190  GOTO 3640
  620. 6200  ON FNA(6) GOTO 6210,6240,6260,6280,6310,6340
  621. 6210  COLOR 0,15,15:CLS:PRINT "Flash! Oh no! you are now a blind ";R$(RC);"!"
  622. 6220  BL=1
  623. 6230  GOTO 6370
  624. 6240  PRINT "It's another volume of NurTROFFcc's poetry! - YECH!!"
  625. 6250  GOTO 6370
  626. 6260  PRINT "It's an old copy of Play";R$(FNA(4));"!"
  627. 6270  GOTO 6370
  628. 6280  PRINT "It's a manual of dexterity!"
  629. 6290  DX=18
  630. 6300  GOTO 6370
  631. 6310  PRINT "It's a manual of strength!"
  632. 6320  ST=18
  633. 6330  GOTO 6370
  634. 6340  COLOR 11,0,15:PRINT"The book sticks to your hands -"
  635. 6350  PRINT "now you are unable to draw your weapon!":COLOR 3,0,1
  636. 6360  BF=1
  637. 6370  L(FND(Z))=1
  638. 6380  GOTO 3640
  639. 6390  ON FNA(4) GOTO 6400,6450,6490,6450
  640. 6400  PRINT
  641. 6410  COLOR 14,0,15:PRINT "KABOOM!";:COLOR 3,0,1:PRINT " it explodes!!"
  642. 6420  Q=FNA(6)
  643. 6430  GOSUB 10240
  644. 6440  ON (1-(ST<1)) GOTO 6370,10340
  645. 6450  Q=FNA(1000)
  646. 6460  PRINT "find";Q;"gold pieces!"
  647. 6470  GP!=GP!+Q
  648. 6480  GOTO 6370
  649. 6490  PRINT
  650. 6500  COLOR 5,0,15:PRINT "GAS!!";:COLOR 3,0,1:PRINT "you stagger from the room!"
  651. 6510  L(FND(Z))=1
  652. 6520  T=T+20
  653. 6530  O$=MID$("NSEW",FNA(4),1)
  654. 6540  GOTO 5030
  655. 6550  IF L(FND(Z))=11 GOTO 6590
  656. 6560  PRINT
  657. 6570  COLOR 11,0,15:PRINT "**You need an orb to use the gaze command!":COLOR 3,0,1
  658. 6580  GOTO 3640
  659. 6590  PRINT
  660. 6600  PRINT "You see ";
  661. 6610  ON FNA(6) GOTO 6620,6640,6660,6680,6750,6790
  662. 6620  PRINT "Yourself in a bloody mess!"
  663. 6630  ST=ST-FNA(2) : ON (1-(ST<1)) GOTO 3640,10340
  664. 6640  PRINT "Yourself drinking from a pool and becoming ";C$(12+FNA(13));"!"
  665. 6650  GOTO 3640
  666. 6660  PRINT C$(12+FNA(13));" gazing back at you!"
  667. 6670  GOTO 3640
  668. 6680  A=X : B=Y : C=Z
  669. 6690  X=FNA(8) : Y=FNA(8) : Z=FNA(8)
  670. 6700  Q=FNE(L(FND(Z)))
  671. 6710  L(FND(Z))=Q
  672. 6720  PRINT C$(Q);" at (";X;",";Y;") level";Z;"."
  673. 6730  X=A : Y=B : Z=C
  674. 6740  GOTO 3640
  675. 6750  A=FNA(8) : B=FNA(8) : C=FNA(8)
  676. 6760  IF FNA(8) < 4 THEN A=O(1) : B=O(2) : C=O(3)
  677. 6770  BEEP:COLOR 12,0,15:PRINT "The Amulet of Chaos at (";A;",";B;") level";C;"!":COLOR 3,0,1
  678. 6780  GOTO 3640
  679. 6790  PRINT "a soap opera rerun!"
  680. 6800  GOTO 3640
  681. 6810  IF RF <> 0 GOTO 6850
  682. 6820  PRINT
  683. 6830  COLOR 11,0,15:PRINT "** You can't teleport without the Runestaff!":COLOR 3,0,1
  684. 6840  GOTO 3640
  685. 6850  Z$="X-Coordinate"
  686. 6860  GOSUB 11750
  687. 6870  X=Q
  688. 6880  Z$="Y-Coordinate"
  689. 6890  GOSUB 11750
  690. 6900  Y=Q
  691. 6910  Z$="Z-Coordinate"
  692. 6920  GOSUB 11750
  693. 6930  Z=Q
  694. 6940  O$="T"
  695. 6950  GOTO 7090
  696. 6960  PRINT
  697. 6970  PRINT "Do you really want to quit now?";
  698. 6980  GOSUB 11610
  699. 6990  PRINT
  700. 7000  IF O$="Y" GOTO 7030
  701. 7010  COLOR 11,0,15:PRINT "** Then don't say that you do!":COLOR 3,0,1
  702. 7020  GOTO 3640
  703. 7030  PRINT
  704. 7040  GOTO 10630
  705. 7050  REM
  706. 7060  REM   DISPLAY STATUS INFORMATION
  707. 7070  REM
  708. 7080  CLS
  709. 7090  KEY OFF:COLOR 3,0,1:PRINT
  710. 7100  IF BL=0 THEN GOSUB 11920 : PRINT
  711. 7110  LOCATE 24,1:COLOR 3,0,1
  712. 7120  PRINT "Strength =";ST;" Intelligence =";IQ;" Dexterity =";DX
  713. 7130  PRINT "Treasures =";TC;" Flares =";FL;" Gold Pieces =";GP!
  714. 7140  PRINT "Turns =";T;"  Weapon = ";W$(WV+1);"  Armor = ";W$(AV+5);
  715. 7150  IF LF=1 THEN PRINT "  and a lamp"
  716. 7160  IF LF=0 THEN PRINT "   "
  717. 7170  JOHN!=IQ*100+ST*100+DX*100+KM!+FTRS+REQ+GP!-T*5
  718. 7180  ' IF JOHN! > 30000 THEN JOHN!=30000
  719. 7190  ' IF GP! > 30000 THEN GP!=30000
  720. 7200  PRINT"Score =";JOHN!;:COLOR 3,0,1:
  721. 7210  PRINT "  Status = ";
  722. 7220  EQUZ=0
  723. 7230  IF BL = 1 THEN PRINT "-Blinded":EQUZ=1
  724. 7240  IF BF = 1 THEN PRINT "-Unable to draw weapon":EQUZ=1
  725. 7250  IF EQUZ=0 THEN PRINT "-Normal"
  726. 7260  COLOR 3,0,1
  727. 7270  '60:PRINT "Time = ";TIME$:COLOR 3,0,1:MAGICAL=0
  728. 7280  PRINT "Your are carrying ";
  729. 7290  IF OF = 1 THEN COLOR 12,0,1:PRINT "The Amulet of Chaos":COLOR 3,0,1:MAGICAL=1
  730. 7300  IF RF = 1 THEN PRINT "The Runestaff":MAGICAL=1
  731. 7310  IF MAGICAL=0 THEN PRINT "no magical items at the moment"
  732. 7320  QXYZ=0
  733. 7330  PRINT "The treasures you carry are ";
  734. 7340  FOR Q=1 TO 8
  735. 7350  IF T(Q)=1 THEN PRINT C$ (Q+25):QXYZ=1
  736. 7360  NEXT Q
  737. 7370  IF QXYZ=0 THEN PRINT "nothing"
  738. 7380  IF COME=1 THEN GOTO 7400
  739. 7390  IF T > 500 THEN GOTO 12280
  740. 7400  WC=0
  741. 7410  Q=FNE(L(FND(Z)))
  742. 7420  L(FND(Z))=Q
  743. 7430  Z$="You now have "
  744. 7440  PRINT
  745. 7450  PRINT "Here you find ";C$(Q);"."
  746. 7460  IF (Q<7) OR (Q=11) OR (Q=12) GOTO 3640
  747. 7470  IF Q=7 THEN GP!=GP!+FNA(10) : PRINT Z$;GP!;"." : GOTO 6370
  748. 7480  IF Q=8 THEN FL=FL+FNA(5) : PRINT Z$;FL;"." : GOTO 6370
  749. 7490  IF Q > 9 GOTO 7520
  750. 7500  IF (O(1)=X) AND (O(2)=Y) AND (O(3)=Z) THEN ON (1-(O$="T")) GOTO 5030,11070
  751. 7510  X=FNA(8) : Y=FNA(8) : Z=FNA(8) : GOTO 7090
  752. 7520  IF Q=10 THEN Z=FNB(Z+1) : GOTO 7090
  753. 7530  IF Q <= 25 OR Q >= 34 GOTO 7590
  754. 7540  PRINT
  755. 7550  PRINT "It's now yours!"
  756. 7560  T(Q-25)=1
  757. 7570  TC=TC+1
  758. 7580  GOTO 6370
  759. 7590  A=L(FND(Z))-12
  760. 7600  WC=0
  761. 7610  IF (A<13) OR (VF=1) GOTO 8800
  762. 7620  PRINT
  763. 7630  PRINT "You may trade with, attack, or ignore the Drow Merchant."
  764. 7640  GOSUB 11590
  765. 7650  IF O$="I" GOTO 3640
  766. 7660  IF O$ <> "A" GOTO 7710
  767. 7670  VF=1
  768. 7680  PRINT
  769. 7690  COLOR 3,0,12:PRINT "You'll be sorry that you did that!"
  770. 7700  GOTO 8800
  771. 7710  IF O$="T" GOTO 7750
  772. 7720  PRINT
  773. 7730  COLOR 11,0,15:PRINT "** Nice shot ";R$(RC);"!":COLOR 3,0,1
  774. 7740  GOTO 7620
  775. 7750  FOR Q=1 TO 8
  776. 7760  A=FNA(Q*1500)
  777. 7770  IF T(Q)=0 GOTO 7830
  778. 7780  PRINT
  779. 7790  PRINT "Do you want to sell ";C$(Q+25);" for ";A;"gp's";
  780. 7800  GOSUB 11610
  781. 7810  IF O$="Y" THEN TC=TC-1 : T(Q)=0 : GP!=GP!+A : GOTO 7830
  782. 7820  IF O$ <> "N" THEN PRINT Y$ : GOTO 7780
  783. 7830  NEXT Q
  784. 7840  IF GP! >= 1000 GOTO 7880
  785. 7850  PRINT
  786. 7860  PRINT "You're too poor to trade, ";R$(RC);"."
  787. 7870  GOTO 3640
  788. 7880  IF GP! < 1250 GOTO 8380
  789. 7890  PRINT
  790. 7900  PRINT "OK ";R$(RC);", you have ";GP!;"gp's and ";W$(AV+5);" armor."
  791. 7910  PRINT
  792. 7920  Z$="Armor"
  793. 7930  GOSUB 11890
  794. 7940  PRINT "Nothing:0gp's Leather:1250gp's ";
  795. 7950  IF GP! > 1499 THEN PRINT "Chainmail:1500:gp's ";
  796. 7960  IF GP! > 1999 THEN PRINT "Plate Mail:2000gp's ";
  797. 7970  PRINT
  798. 7980  GOSUB 11590
  799. 7990  PRINT
  800. 8000  IF O$="N" GOTO 8130
  801. 8010  IF O$="L" THEN GP!=GP!-1250 : AV=1 : AH=7 : GOTO 8130
  802. 8020  IF O$ <> "C" OR GP! >= 1500 GOTO 8050
  803. 8030  COLOR 11,0,15:PRINT "** You haven't got that much gold on hand!":COLOR 3,0,1
  804. 8040  GOTO 7910
  805. 8050  IF O$="C" THEN GP!=GP!-1500 : AV=2 : AH=14 : GOTO 8130
  806. 8060  IF O$ <> "P" OR GP! >= 2000 GOTO 8090
  807. 8070  COLOR 11,0,15:PRINT "** You can't afford plate mail!":COLOR 3,0,1
  808. 8080  GOTO 7910
  809. 8090  IF O$="P" THEN GP!=GP!-2000 : AV=3 : AH=21 : GOTO 8130
  810. 8100  PRINT
  811. 8110  COLOR 11,0,15:PRINT "** Choose a selection.":COLOR 3,0,1
  812. 8120  GOTO 7970
  813. 8130  IF GP! < 1250 GOTO 8380
  814. 8140  PRINT
  815. 8150  PRINT "You have";GP!;"gp's left with ";W$(WV+1);" in hand."
  816. 8160  PRINT
  817. 8170  Z$="Weapon"
  818. 8180  GOSUB 11890
  819. 8190  PRINT "Nothing:- Dagger:1250gp's";
  820. 8200  IF GP! > 1499 THEN PRINT "Mace:1500gp's";
  821. 8210  IF GP! > 1999 THEN PRINT "Sword:2000gp's";
  822. 8220  PRINT
  823. 8230  GOSUB 11590
  824. 8240  PRINT
  825. 8250  IF O$="N" GOTO 8380
  826. 8260  IF O$="D" THEN GP!=GP!-1250 : WV=1 : GOTO 8380
  827. 8270  IF O$ <> "M" OR GP! >= 1500 GOTO 8300
  828. 8280  COLOR 11,0,15:PRINT "** Sorry sir, I'm afraid I don't give credit!":COLOR 3,0,1
  829. 8290  GOTO 8160
  830. 8300  IF O$="M" THEN GP!=GP!-1500 : WV=2 : GOTO 8380
  831. 8310  IF O$ <> "S" OR GP! >= 2000 GOTO 8350
  832. 8320  COLOR 11,0,15:PRINT "** Your Dungeon Express Card - ";
  833. 8330  PRINT "You left home without it!":COLOR 3,0,1
  834. 8340  GOTO 8160
  835. 8350  IF O$="S" THEN GP!=GP!-2000 : WV=3 : GOTO 8380
  836. 8360  COLOR 11,0,15:PRINT "** Try choosing a selection!":COLOR 3,0,1
  837. 8370  GOTO 8220
  838. 8380  IF GP! < 1000 GOTO 3640
  839. 8390  Z$="Strength"
  840. 8400  GOSUB 11830
  841. 8410  IF O$ <> "Y" GOTO 8470
  842. 8420  GP!=GP!-1000
  843. 8430  ST=FNC(ST+FNA(6))
  844. 8440  Q=ST
  845. 8450  GOSUB 11860
  846. 8460  GOTO 8380
  847. 8470  IF O$ <> "N" THEN PRINT Y$ : GOTO 8390
  848. 8480  IF GP! < 1000 GOTO 3640
  849. 8490  Z$="Intelligence"
  850. 8500  GOSUB 11830
  851. 8510  IF O$ <> "Y" GOTO 8570
  852. 8520  GP!=GP!-1000
  853. 8530  IQ=FNC(IQ+FNA(6))
  854. 8540  Q=IQ
  855. 8550  GOSUB 11860
  856. 8560  GOTO 8480
  857. 8570  IF O$ <> "N" THEN PRINT Y$ : GOTO 8490
  858. 8580  IF GP! < 1000 GOTO 3640
  859. 8590  Z$="Dexterity"
  860. 8600  GOSUB 11830
  861. 8610  IF O$ <> "Y" GOTO 8670
  862. 8620  GP!=GP!-1000
  863. 8630  DX=FNC(DX+FNA(6))
  864. 8640  Q=DX
  865. 8650  GOSUB 11860
  866. 8660  GOTO 8580
  867. 8670  IF O$ <> "N" THEN PRINT Y$ : GOTO 8590
  868. 8680  IF (GP!<1000) OR (LF=1) GOTO 3640
  869. 8690  PRINT
  870. 8700  PRINT "Do you want to buy a lamp for 1000 gp's";
  871. 8710  GOSUB 11610
  872. 8720  IF O$ <> "Y" GOTO 8780
  873. 8730  GP!=GP!-1000
  874. 8740  LF=1
  875. 8750  PRINT
  876. 8760  PRINT "It's guaranteed to outlive you!"
  877. 8770  GOTO 3640
  878. 8780  IF O$ <> "N" THEN PRINT Y$ : GOTO 8690
  879. 8790  GOTO 3640
  880. 8800  Q1=1+INT(A/2) : Q2=A+2 : Q3=1
  881. 8810  IF (C(1,4)>T(1)) OR (BL=1) OR (DX<FNA(9)+FNA(9)) GOTO 9850
  882. 8820  PRINT
  883. 8830  COLOR 3,0,12:PRINT "You're confronting ";C$(A+12);"!"
  884. 8840  PRINT
  885. 8850  PRINT "You may attack or retreat (strongly suggested!)."
  886. 8860  IF Q3=1 THEN PRINT "You can also attempt to bribe the creature."
  887. 8870  IF IQ > 14 THEN PRINT "You can also cast a spell."
  888. 8880  PRINT
  889. 8890  PRINT "Your strength is";ST;"and your dexterity is";DX;"."
  890. 8900  GOSUB 11590
  891. 8910  IF O$ <> "A" GOTO 9340
  892. 8920  IF WV <> 0 GOTO 8960
  893. 8930  PRINT
  894. 8940  COLOR 11,0,15:PRINT "** Pounding on ";C$(A+12);" won't hurt it!":COLOR 3,0,12
  895. 8950  GOTO 9850
  896. 8960  IF BF <> 1 GOTO 9000
  897. 8970  PRINT
  898. 8980  COLOR 11,0,15:PRINT "** You can't kill it with a book, so I suggest you either attack or retreat!":COLOR 3,0,12
  899. 8990  GOTO 9850
  900. 9000  IF DX >= FNA(20)+(3*BL) GOTO 9040
  901. 9010  PRINT
  902. 9020  PRINT "You barley missed the ";C$(A+12);"!"
  903. 9030  GOTO 9850
  904. 9040  Z$=RIGHT$(C$(A+12),LEN(C$(A+12))-2)
  905. 9050  IF LEFT$(Z$,1)=" " THEN Z$=MID$(Z$,2)
  906. 9060  PRINT
  907. 9070  PRINT "A valent blow, you hit the ";Z$;"!"
  908. 9080  Q2=Q2-WV
  909. 9090  IF (A <> 9 AND A <> 12) GOTO 9140
  910. 9100  IF FNA(8) <> 1 GOTO 9140
  911. 9110  PRINT
  912. 9120  COLOR 11,0,15:BEEP:BEEP:PRINT "OH NO! Your ";W$(WV+1);" broke!":BEEP:BEEP:COLOR 3,0,12
  913. 9130  WV=0
  914. 9140  IF Q2 > 0 GOTO 9850
  915. 9150  PRINT
  916. 9160  MC=MC-1
  917. 9170  PRINT "You kill ";C$(A+12);"."
  918. 9180  KM!=KM!+1000
  919. 9190  IF H > T-60 GOTO 9230
  920. 9200  PRINT
  921. 9210  PRINT "You spend an hour eating ";C$(A+12);E$(FNA(8));"."
  922. 9220  H=T
  923. 9230  IF X <> R(1) OR Y <> R(2) OR Z <> R(3) THEN ON (1-(A=13)) GOTO 9290,11390
  924. 9240  PRINT
  925. 9250  COLOR 11,0,15:BEEP:PRINT "You've found the Runestaff!";CHR$(7):COLOR 3,0,12
  926. 9260  FTRS=10000
  927. 9270  R(1)=0
  928. 9280  RF=1
  929. 9290  Q=FNA(1000)
  930. 9300  PRINT
  931. 9310  PRINT "You now get his hoard of";Q;"gp's!"
  932. 9320  GP!=GP!+Q
  933. 9330  GOTO 6370
  934. 9340  IF O$="R" GOTO 9850
  935. 9350  IF O$ <> "C" GOTO 9640
  936. 9360  IF IQ >= 15 OR Q3 <= 1 GOTO 9400
  937. 9370  PRINT
  938. 9380  COLOR 11,0,15:PRINT "** You can't cast a spell now!":COLOR 3,0,12
  939. 9390  GOTO 8820
  940. 9400  PRINT
  941. 9410  PRINT "Which spell do you wish to cast, W/eb, F/ireball, or D/eathspell?";
  942. 9420  GOSUB 11610
  943. 9430  PRINT
  944. 9440  IF O$ <> "W" GOTO 9480
  945. 9450  ST=ST-1
  946. 9460  WC=FNA(8)+1
  947. 9470  ON (1-(ST<1)) GOTO 9850,10340
  948. 9480  IF O$ <> "F" GOTO 9570
  949. 9490  Q=FNA(7)+FNA(7)
  950. 9500  ST=ST-1
  951. 9510  IQ=IQ-1
  952. 9520  IF (IQ < 1) OR (ST < 1) GOTO 10340
  953. 9530  PRINT "It does";Q;"points worth of damage."
  954. 9540  PRINT
  955. 9550  Q2=Q2-Q
  956. 9560  GOTO 9140
  957. 9570  IF O$="D" GOTO 9610
  958. 9580  PRINT
  959. 9590  COLOR 11,0,15:PRINT "** Try one of the options given.":COLOR 3,0,12
  960. 9600  GOTO 8820
  961. 9610  PRINT "Death is. . . ";
  962. 9620  IF IQ < FNA(4)+15 THEN PRINT "yours!" : IQ=0 : GOTO 10340
  963. 9630  PRINT "his!" : Q2=0 : GOTO 9150
  964. 9640  IF O$="B" AND Q3 <= 1 GOTO 9680
  965. 9650  PRINT
  966. 9660  COLOR 11,0,15:PRINT "** Choose one of the options listed.":COLOR 3,0,12
  967. 9670  GOTO 8820
  968. 9680  IF TC <> 0 GOTO 9720
  969. 9690  PRINT
  970. 9700  PRINT "All I want is your life!"
  971. 9710  GOTO 9850
  972. 9720  Q=FNA(8)
  973. 9730  IF T(Q)=0 GOTO 9720
  974. 9740  PRINT
  975. 9750  PRINT "I want ";C$(Q+25);". Will you give it to me?";
  976. 9760  GOSUB 11610
  977. 9770  IF O$="N" GOTO 9850
  978. 9780  IF O$ <> "Y" THEN PRINT Y$ : GOTO 9740
  979. 9790  T(Q)=0
  980. 9800  TC=TC-1
  981. 9810  PRINT
  982. 9820  PRINT "OK, just don't tell anyone else."
  983. 9830  VF=VF+(L(FND(Z))=25)
  984. 9840  GOTO 3640
  985. 9850  Q3=2
  986. 9860  IF WC <= 0 GOTO 9890
  987. 9870  WC=WC-1
  988. 9880  IF WC=0 THEN PRINT : PRINT "The web just broke!"
  989. 9890  Z$=RIGHT$(C$(A+12),LEN(C$(A+12))-2)
  990. 9900  IF LEFT$(Z$,1)=" " THEN Z$=MID$(Z$,2)
  991. 9910  IF WC <= 0 GOTO 9950
  992. 9920  PRINT
  993. 9930  PRINT "The ";Z$;" is stuck and can't attack now!"
  994. 9940  GOTO 10130
  995. 9950  PRINT
  996. 9960  PRINT "The ";Z$;" attacks!"
  997. 9970  IF DX < FNA(7)+FNA(7)+FNA(7)+3*BL GOTO 10080
  998. 9980  PRINT
  999. 9990  HIT=INT(RND(0)*3)
  1000. 10000  ON HIT GOTO 10010,10030,10050
  1001. 10010  PRINT "The blow barely misses your left leg making sparks a huge dent in the floor!"
  1002. 10020  GOTO 10130
  1003. 10030  PRINT "The ";Z$;" charges at you but you dodge out of the way just in time!"
  1004. 10040  GOTO 10130
  1005. 10050  PRINT "The ";Z$;" just  barely misses your ear!"
  1006. 10060  GOTO 10130
  1007. 10070  GOTO 10130
  1008. 10080  PRINT
  1009. 10090  COLOR 12,0,4:BEEP:PRINT "Thud! The ";Z$;" hit you!":BEEP:COLOR 3,0,12
  1010. 10100  Q=Q1
  1011. 10110  GOSUB 10240
  1012. 10120  IF ST < 1 GOTO 10340
  1013. 10130  IF O$ <> "R" GOTO 8820
  1014. 10140  PRINT
  1015. 10150  PRINT "You have escaped!"
  1016. 10160  PRINT
  1017. 10170  PRINT "Do you want to go North, south, east, or west?";
  1018. 10180  GOSUB 11610
  1019. 10190  IF O$="N" OR O$="S" OR O$="E" OR O$="W" GOTO 5030
  1020. 10200  PRINT
  1021. 10210  COLOR 11,0,15:PRINT "** Don't press your luck, ";R$(RC);"!":COLOR 3,0,12
  1022. 10220  PRINT
  1023. 10230  GOTO 10170
  1024. 10240  IF AV=0 GOTO 10320
  1025. 10250  Q=Q-AV
  1026. 10260  AH=AH-AV
  1027. 10270  IF Q < 0 THEN AH=AH-Q : Q=0
  1028. 10280  IF AH >= 0 GOTO 10320
  1029. 10290  AH=0 : AV=0
  1030. 10300  PRINT
  1031. 10310  PRINT "Your armor is damaged beyond use . . . good luck!"
  1032. 10320  ST=ST-Q
  1033. 10330  RETURN
  1034. 10340  PRINT CHR$(7)
  1035. 10350  GOSUB 11530
  1036. 10360  COLOR 3,0,7:PRINT "A noble effort, oh formerly living ";R$(RC);"!"
  1037. 10370  PRINT
  1038. 10380  PRINT "You died due to lack of ";
  1039. 10390  IF ST < 1 THEN PRINT "Strength."
  1040. 10400  IF IQ < 1 THEN PRINT "Intelligence."
  1041. 10410  IF DX < 1 THEN PRINT "Dexterity."
  1042. 10420  PRINT
  1043. 10430  Q3=1
  1044. 10440  PRINT "At the time you died, you had :":PRINT
  1045. 10450  GOTO 10680
  1046. 10460  Q3=0
  1047. 10470  PRINT
  1048. 10480  PRINT "You left the castle with";
  1049. 10490  IF OF=0 THEN PRINT "out";
  1050. 10500  PRINT " the Amulet of Chaos."
  1051. 10510  PRINT
  1052. 10520  IF OF=0 GOTO 10630
  1053. 10530  CLS:GOTO 740
  1054. 10540  CLS:COLOR 11,0,15:
  1055. 10550  PRINT"                   POINT<0xDF!> CSRLIN   CSRLIN POINT<0xDF!><0xDF!>POINT CSRLIN  CSRLIN   CSRLIN     CSRLIN <0xDF!>CSRLIN<0xDF!> CSRLINPOINT   CSRLIN  POINTCSRLINPOINT <0xDF!>POINT
  1056. 10560  PRINT"          POINTPOINTPOINT <0xDF!><0xDF!><0xDF!> CSRLIN    <0xDF!>POINT<0xDF!>  CSRLIN  CSRLIN CSRLIN  CSRLIN   CSRLIN  POINT  CSRLIN  CSRLIN  CSRLIN <0xDF!>POINT CSRLIN  <0xDF!>CSRLIN<0xDF!>   CSRLIN <0xDF!><0xDF!><0xDF!> POINTPOINTPOINT
  1057. 10570  PRINT"              <0xDF!><0xDF!><0xDF!>  <0xDF!>POINT   CSRLIN   <0xDF!>POINTPOINT<0xDF!> <0xDF!>POINTPOINT<0xDF!>    <0xDF!>POINT<0xDF!>POINT<0xDF!>  POINTCSRLINPOINT CSRLIN   <0xDF!>CSRLIN   POINT  POINT<0xDF!>  <0xDF!><0xDF!><0xDF!>
  1058. 10580  PRINT"
  1059. 10590  PRINT "                         An incredibly glorious victory!!!!":COLOR 3,0,1
  1060. 10600  PRINT
  1061. 10610  PRINT "In addition, you got out with the following:"
  1062. 10620  GOTO 10670
  1063. 10630  PRINT
  1064. 10640  PRINT "A less than awe-inspiring defeat."
  1065. 10650  PRINT
  1066. 10660  PRINT "When you left the castle, you had:"
  1067. 10670  IF Q3=0 THEN PRINT "Your miserable life!"
  1068. 10680  FOR Q=1 TO 8
  1069. 10690  IF T(Q)=1 THEN PRINT C$(Q+25)
  1070. 10700  NEXT Q
  1071. 10710  PRINT W$(WV+1);" and ";W$(AV+5);
  1072. 10720  IF LF=1 THEN PRINT " and a lamp";
  1073. 10730  PRINT
  1074. 10740  PRINT "You also had";FL;"flares and";GP!;"gold pieces"
  1075. 10750  IF RF=1 THEN PRINT "and the Runestaff"
  1076. 10760  PRINT "Your score was ";JOHN!
  1077. 10770  PRINT "And it took you";T;"turns!"
  1078. 10780  IF JOHN! < 20000 THEN RANK$ ="a Whimp"
  1079. 10790  IF JOHN! > 35000 THEN RANK$="a Peasent"
  1080. 10800  IF JOHN! > 50000 THEN RANK$="an Ametuer"
  1081. 10810  IF JOHN! > 75000 THEN RANK$="a Scout"
  1082. 10820  IF JOHN! > 90000 THEN RANK$="an Adventurer"
  1083. 10830  IF JOHN! > 110000 THEN RANK$="a Hero"
  1084. 10840  IF JOHN! > 125000 THEN RANK$="a Wizard"
  1085. 10850  IF JOHN! > 140000 THEN GOTO 12470
  1086. 10860  'GOTO 11290
  1087. 10870  PRINT :PRINT "You are ranked as ";RANK$
  1088. 10875  FOR A=2000 TO 800 STEP -2:SOUND A,0.1:NEXT
  1089. 10880  PLAY "MS T225 O2 P4 L8 ggg L4 g P8 L8 ggg L4 g P8 L8 gggggg L2 a# P5"
  1090. 10890  PLAY "MS T225 O2 L8 ggg L4 g P8 L8 ggg L4 g P8 L8 gggggg L2 a# P5"
  1091. 10900  PLAY "MS T225 O3 L8 ddd L4 d P8 L8 ddd L4 d P8 L8 dddddd L2 f P5"
  1092. 10910  PLAY "MS T225 O3 L8 ddd L4 d P8 L8 ddd L4 d P8 L8 dddddd L2 f P5"
  1093. 10920  PLAY "MS T210 O3 L3 d O2 a# L2 g P8 L2 a# L2 g P4"
  1094. 10930  PLAY "MS T225 O2 L8 gggggg L2 a# P8 L8 gggggg L2 a# P8 L8 gggggg L2 a# P5 L4 fg P1 g"
  1095. 10940  PRINT:PRINT  " Are you foolish enough to want to play again?";
  1096. 10950  GOSUB 11610
  1097. 10960  PRINT
  1098. 10970  IF O$ <> "Y" GOTO 11030
  1099. 10980  PRINT "Some ";R$(RC);"s never learn!"
  1100. 10990  PRINT
  1101. 11000  PRINT "Please be patient while the castle is restocked."
  1102. 11010  PRINT
  1103. 11020  GOTO 1610
  1104. 11030  IF O$ <> "N" THEN PRINT Y$ : GOTO 10870
  1105. 11040  PRINT "Maybe dumb ";R$(RC);" is not so dumb after all!"
  1106. 11050  PRINT
  1107. 11060  GOTO 11940
  1108. 11070  PRINT
  1109. 11080  'PRINT "Great unmitigated NurTROFFcc!"
  1110. 11090  PRINT
  1111. 11100  COLOR 28,0,15:BEEP:BEEP:PRINT "You just found The Amulet of Chaos!":BEEP:BEEP:COLOR 3,0,1
  1112. 11110  ST=18
  1113. 11120  IQ=18
  1114. 11130  DX=18
  1115. 11140  REQ=20000
  1116. 11150  BF=0
  1117. 11160  BL=0
  1118. 11170  PRINT
  1119. 11180  PRINT "The Runestaff has just disappeared!"
  1120. 11190  RF=0
  1121. 11200  OF=1
  1122. 11210  O(1)=0
  1123. 11220  GOTO 6370
  1124. 11230  DATA An empty room,TAB(,the entrance,OR,stairs going up,U
  1125. 11240  DATA stairs going down,D,a pool,P,a chest,C,gold pieces,G
  1126. 11250  DATA flares,<0x9F!>,a warp,CSRLIN,a sinkhole,S,a Crystal Orb,<
  1127. 11260  DATA a book,B,a Green Slime,WEND,an Orc,LPRINT,an Evil Dwarf,LPRINT,a Goblin,LPRINT,a Mind Flayer,LPRINT
  1128. 11270  DATA a Troll,LPRINT,a Giant spider,LPRINT,a Minotar,LPRINT,a Drow,*,a Drider,LPRINT
  1129. 11280  DATA a Balor Demon,LPRINT,a Red Dragon,*,a Drow Merchant,-,the Ruby Red,T
  1130. 11290  DATA the Norn Stone,T,the Pale Pearl,T,the Opal Eye,T
  1131. 11300  DATA the Green Gem,T,the Blue Flame,T,the Palantir,T,the Silmaril,T
  1132. 11310  DATA X,"?",no weapon," Sandwich"
  1133. 11320  DATA Dagger," stew",Mace," soup",Sword," burger",No armor," roast"
  1134. 11330  DATA Leather," filet",Chainmail," taco",Plate mail," pie"
  1135. 11340  DATA Hobbit,Elf,Man,Dwarf
  1136. 11350  X=FNA(8) : Y=FNA(8)
  1137. 11360  IF L(FND(Z)) <> 101 GOTO 11350
  1138. 11370  L(FND(Z))=Q
  1139. 11380  RETURN
  1140. 11390  PRINT
  1141. 11400  PRINT "You get all his wares :"
  1142. 11410  PRINT "Plate mail"
  1143. 11420  AV=3 : AH=21
  1144. 11430  PRINT "A sword"
  1145. 11440  WV=3
  1146. 11450  PRINT "A strength potion"
  1147. 11460  ST=FNC(ST+FNA(6))
  1148. 11470  PRINT "An intelligence potion"
  1149. 11480  IQ=FNC(IQ+FNA(6))
  1150. 11490  PRINT "A dexterity potion"
  1151. 11500  DX=FNC(DX+FNA(6))
  1152. 11510  IF LF=0 THEN PRINT "A lamp" : LF=1
  1153. 11520  GOTO 9290
  1154. 11530  FOR Q=1 TO 64
  1155. 11540  PRINT "*";
  1156. 11550  NEXT Q
  1157. 11560  PRINT
  1158. 11570  PRINT
  1159. 11580  RETURN
  1160. 11590  PRINT
  1161. 11600  PRINT "Your choice";
  1162. 11610  INPUT O$
  1163. 11620  O$=LEFT$(O$,1)
  1164. 11630  RETURN
  1165. 11640  PRINT "How many points do you wish to add to your ";Z$;
  1166. 11650  INPUT O$
  1167. 11660  PRINT
  1168. 11670  Q=VAL(O$)
  1169. 11680  IF Q=0 AND ASC(O$) <> 48 THEN Q=-1
  1170. 11690  IF Q<0 OR Q>OT OR Q<>INT(Q) THEN PRINT "** "; : GOTO 11640
  1171. 11700  OT=OT-Q
  1172. 11710  RETURN
  1173. 11720  INPUT O$
  1174. 11730  Q=INT(VAL(O$))
  1175. 11740  RETURN
  1176. 11750  PRINT
  1177. 11760  PRINT Z$;
  1178. 11770  INPUT O$
  1179. 11780  Q=INT(VAL(O$))
  1180. 11790  IF Q > 0 AND Q < 9 THEN RETURN
  1181. 11800  PRINT
  1182. 11810  COLOR 11,0,15:PRINT "** Try a number from 1 to 8.":COLOR 3,0,1
  1183. 11820  GOTO 11750
  1184. 11830  PRINT
  1185. 11840  PRINT "Do you want to buy a potion of ";Z$;" for 1000 gp's";
  1186. 11850  GOTO 11610
  1187. 11860  PRINT
  1188. 11870  PRINT "Your ";Z$;" is now";Q;"."
  1189. 11880  RETURN
  1190. 11890  PRINT
  1191. 11900  PRINT "These are the types of ";Z$;" you can buy :"
  1192. 11910  RETURN
  1193. 11920  COLOR 2,0,1:PRINT "You are at (";X;",";Y;") level";Z;".":COLOR 3,0,1
  1194. 11930  RETURN
  1195. 11940  END
  1196. 11950  LET JOHN!=ST+IQ+DX+GP!-T
  1197. 11960  PRINT
  1198. 11970  PRINT"Your score at this time is ";JOHN!
  1199. 11980  PRINT
  1200. 11990  GOTO 4360
  1201. 12000  LPRINT "*** TEMPLE OF LOTH'S COMMAND AND INFORMATION SUMMARY ***"
  1202. 12010  LPRINT
  1203. 12020  LPRINT "The following commands available are:"
  1204. 12030  LPRINT
  1205. 12040  LPRINT "H/elp     N/orth    S/outh    E/ast     W/est     U/p"
  1206. 12050  LPRINT "D/own     DR/ink    M/ap      F/lare    L/amp     O/pen"
  1207. 12060  LPRINT "G/aze     T/eleport Q/uit     #/Score
  1208. 12070  LPRINT
  1209. 12080  LPRINT "The contents of the rooms are as follows:"
  1210. 12090  LPRINT
  1211. 12100  LPRINT "TAB( = empty room      B = book            C = chest"
  1212. 12110  LPRINT "D = stairs down     OR = entrance/exit   <0x9F!> = flares"
  1213. 12120  LPRINT "G = gold pieces     LPRINT = monster         < = crystal orb"
  1214. 12130  LPRINT "P = magic pool      S = sinkhole        T = treasure"
  1215. 12140  LPRINT "U = stairs up       * = Drow            CSRLIN = warp/amulet
  1216. 12150  LPRINT
  1217. 12160  LPRINT
  1218. 12170  LPRINT "The benefits of having treasures are:"
  1219. 12180  LPRINT
  1220. 12190  LPRINT "RUBY RED - avoid lethargy    PALE PEARL - avoid leech"
  1221. 12200  LPRINT "GREEN GEM - avoid forgetting  OPAL EYE - cure blindness"
  1222. 12210  LPRINT "BLUE FLAME - dissolves books  NORN STONE - no benefit"
  1223. 12220  LPRINT "PALANTIR - no benefit         SILMARIL - no benefit"
  1224. 12230  LPRINT
  1225. 12240  GOTO 4380
  1226. 12250  END
  1227. 12260  RF=1
  1228. 12270  GOTO 4380
  1229. 12280  PRINT
  1230. 12290  COME=1
  1231. 12300  PRINT"You hear footsteps...";
  1232. 12310  SOUND 32767,28
  1233. 12320  PRINT"The footsteps get louder!"
  1234. 12330  SOUND 32767,28
  1235. 12340  PRINT"You hear people talking in a strange language."
  1236. 12350  SOUND 32767,28
  1237. 12360  PRINT"Oh, No!! the Drow have returned!!!
  1238. 12370  DROW=INT(RND*100)
  1239. 12380  IF DROW < 10 GOTO 12430
  1240. 12390  ST=0
  1241. 12400  IQ=0
  1242. 12410  DX=0
  1243. 12420  GOTO 10350
  1244. 12430  PRINT
  1245. 12440  PRINT "You escaped just in time!"
  1246. 12450  PRINT
  1247. 12460  GOTO 10510
  1248. 12470  LOCATE 25,1:INPUT "Press return to continue.";QWERTYU$
  1249. 12480  CLS:COLOR 26,0,1
  1250. 12490  PRINT "  POINTPOINT   POINTPOINT  POINT   POINT  POINTPOINT  POINTPOINTPOINT   POINTPOINT  POINTPOINTPOINT  POINT  POINT POINT    POINTPOINT  POINTPOINTPOINTPOINTPOINT POINT  POINTPOINT  POINT   POINT  POINTPOINT    POINT
  1251. 12500  PRINT " CSRLIN  <0xDF!> CSRLIN  CSRLIN CSRLINCSRLIN  CSRLIN CSRLIN  <0xDF!> CSRLIN  CSRLIN CSRLIN  CSRLIN CSRLIN  CSRLIN CSRLIN  CSRLIN CSRLIN   CSRLIN  CSRLIN   CSRLIN   CSRLIN CSRLIN  CSRLIN CSRLINCSRLIN  CSRLIN CSRLIN  <0xDF!>  CSRLIN CSRLIN
  1252. 12510  PRINT " CSRLIN    CSRLIN  CSRLIN CSRLIN CSRLIN CSRLIN CSRLIN    CSRLINPOINTPOINT<0xDF!> CSRLINPOINTPOINTCSRLIN CSRLIN  CSRLIN CSRLIN  CSRLIN CSRLIN   CSRLINPOINTPOINTCSRLIN   CSRLIN   CSRLIN CSRLIN  CSRLIN CSRLIN CSRLIN CSRLIN  <0xDF!><0xDF!>POINT  CSRLIN CSRLIN
  1253. 12520  PRINT " CSRLIN  POINT CSRLIN  CSRLIN CSRLIN  CSRLINCSRLIN CSRLIN <0xDF!>CSRLIN CSRLIN <0xDF!>POINT CSRLIN  CSRLIN CSRLIN  CSRLIN CSRLIN  CSRLIN CSRLIN   CSRLIN  CSRLIN   CSRLIN   CSRLIN CSRLIN  CSRLIN CSRLIN  CSRLINCSRLIN POINT  CSRLIN   <0xDF!>
  1254. 12530  PRINT "  <0xDF!><0xDF!>   <0xDF!><0xDF!>  <0xDF!>   <0xDF!>  <0xDF!><0xDF!>  <0xDF!>  <0xDF!> <0xDF!>  <0xDF!> <0xDF!><0xDF!><0xDF!>   <0xDF!><0xDF!>  <0xDF!><0xDF!><0xDF!> <0xDF!>  <0xDF!>   <0xDF!>   <0xDF!>  <0xDF!><0xDF!>  <0xDF!>   <0xDF!>  <0xDF!><0xDF!>    <0xDF!>
  1255. 12540  COLOR 3,0,1:PRINT
  1256. 12550  PRINT
  1257. 12560  PRINT " You have been ranked as a Lord with a score of ";JOHN!
  1258. 12570  PRINT
  1259. 12580  IF JOHN! > 142498 THEN PRINT " Don't forget to replace my score on Tem-Ins.Bas
  1260. 12590  GOTO 10880
  1261. 12600  CLS:KEY OFF:COLOR 3,0,1
  1262. 12610  LOCATE 1,28:COLOR 27,0,1:PRINT "Temple of Loth instructions"
  1263. 12620  COLOR 3,0,1:LOCATE 4,3
  1264. 12630  PRINT "     Temple of Loth is a computerized simulation of one of the most common and       popular fantasy motifs, the lone adventurer's quest with an immense under       ground labyrinth. Each game is separate from all others, so the game is a"
  1265. 12640  PRINT "     challenge even after you have won. Each game will result in a win or loss       depending on the player's  skill and luck.  The instruction  which follow       will explain the rules and options of the game.
  1266. 12650  COLOR 3,0,1:LOCATE 12,7:PRINT "A. Character Creation
  1267. 12660  'LOCATE 4,45:PRINT "A. Sex
  1268. 12670  'LOCATE 5,7:PRINT "C. Points
  1269. 12680  LOCATE 12,45:PRINT "B. Equipments
  1270. 12690  'LOCATE 5,7:PRINT "C. Lamps and Flares
  1271. 12700  LOCATE 13,7:PRINT "C. The Temple
  1272. 12710  LOCATE 13,45:PRINT "D. Player Commands
  1273. 12720  LOCATE 14,7:PRINT "E. Magic Spells
  1274. 12730  LOCATE 14,45:PRINT "F. Treasures, Curses and Such
  1275. 12740  LOCATE 15,7:PRINT "G. Drow Merchants
  1276. 12750  LOCATE 15,45:PRINT "H. Monsters and The Runestaff
  1277. 12760  LOCATE 16,7:PRINT "I. Warps and ";:COLOR 11,0,1:PRINT "The Amulet of Chaos ":COLOR 3,0,1
  1278. 12770  LOCATE 16,45:PRINT "J. Error Messages
  1279. 12780  LOCATE 17,7:PRINT "K. Scoring
  1280. 12790  LOCATE 17,45:PRINT "L. Comments and Suggestions
  1281. 12800  LOCATE 18,7:PRINT "M. Return to game
  1282. 12810  LOCATE 20,6
  1283. 12820  COLOR 11,0,1:INPUT "Type in the number of the section desired then press return";A$
  1284. 12830  '$=CHR$(ASC(A$) OR &H20)
  1285. 12840  IF A$="a" GOTO 13000
  1286. 12845  IF A$="A" GOTO 13000
  1287. 12850  IF A$="b" GOTO 13230
  1288. 12855  IF A$="B" GOTO 13230
  1289. 12860  IF A$="c" GOTO 13490
  1290. 12865  IF A$="C" GOTO 13490
  1291. 12870  IF A$="d" GOTO 13810
  1292. 12875  IF A$="D" GOTO 13810
  1293. 12880  IF A$="e" GOTO 14270
  1294. 12885  IF A$="E" GOTO 14270
  1295. 12890  IF A$="f" GOTO 14390
  1296. 12895  IF A$="F" GOTO 14390
  1297. 12900  IF A$="g" GOTO 14680
  1298. 12905  IF A$="G" GOTO 14680
  1299. 12910  IF A$="h" GOTO 14780
  1300. 12915  IF A$="H" GOTO 14780
  1301. 12920  IF A$="i" GOTO 14910
  1302. 12925  IF A$="I" GOTO 14910
  1303. 12930  IF A$="j" GOTO 15010
  1304. 12935  IF A$="J" GOTO 15010
  1305. 12940  IF A$="l" GOTO 15090
  1306. 12945  IF A$="L" GOTO 15090
  1307. 12950  IF A$="k" GOTO 15230
  1308. 12955  IF A$="K" GOTO 15230
  1309. 12960  IF A$="m" GOTO 15490
  1310. 12965  IF A$="M" GOTO 15490
  1311. 12970  IF A$=CHR$(13) GOTO 12820
  1312. 12980  PRINT :COLOR 11,0,15:PRINT "Invalid input, try again":COLOR 3,0,1
  1313. 12990  GOTO 12810
  1314. 13000  CLS
  1315. 13010  COLOR 11,0,1
  1316. 13020  PRINT "                                  CHARACTER CREATION
  1317. 13030  PRINT:COLOR 3,0,1
  1318. 13040  PRINT "     At the start of each game you will be asked a number of questions about"
  1319. 13050  PRINT "what type of character you will have. You must make the choices as follows:
  1320. 13060  PRINT
  1321. 13070  PRINT "RACE     You may be an Elf, Dwarf, Man, or Hobbit. Each score is randomly "
  1322. 13080  PRINT "         generated, but bonus and deductions are different for each race."
  1323. 13090  PRINT
  1324. 13100  PRINT "SEX      You may be a female or male. Both are equal in number of points."
  1325. 13110  PRINT "         Be creative in your response.
  1326. 13120  PRINT
  1327. 13130  PRINT "POINTS   Each character starts with a number of points for the attributes"
  1328. 13140  PRINT "         of strength (ST), intelligence (IQ), and dexterity (DX).  In addition,"
  1329. 13150  PRINT "         there are some other points you may distribute between these three"
  1330. 13160  PRINT "         attributes as you wish.
  1331. 13170  PRINT
  1332. 13180  PRINT "         Your ST, IQ, and DX may be any number from 1 to 18. If any of the "
  1333. 13190  PRINT "         three drop below 1, you have died. For all three attributes, the "
  1334. 13200  PRINT "         larger the numerical value, the better. "
  1335. 13210  LOCATE 25,1:INPUT "Press enter to return to main menu";B$
  1336. 13220  GOTO 12600
  1337. 13230  CLS:COLOR 11,0,1
  1338. 13240  PRINT "                                   EQUIPMENT
  1339. 13250  PRINT:COLOR 3,0,1
  1340. 13260  PRINT "    Every character is given 60 gold pieces (gp's), at the beginning of each"
  1341. 13270  PRINT "to purchase some of the following items.
  1342. 13280  PRINT
  1343. 13290  PRINT "ARMOR    You may buy platemail armor for 30 gp's, chainmail for 20 gp's or"
  1344. 13300  PRINT "         leather for 10 gp's. You can only wear one suit of armor at a time."
  1345. 13310  PRINT "         The more expensive the armor, the more damage it will absorb."
  1346. 13320  PRINT
  1347. 13330  PRINT "WEAPONS  You may buy a sword for 30 gp's, a mace for 20 gp's, or a dagger for "
  1348. 13340  PRINT "         10 gp's. You can only carry a single weapon at a time.  The more ex-"
  1349. 13350  PRINT "         pensive the weapon, the more damage it does to the various monsters."
  1350. 13360  PRINT
  1351. 13370  PRINT "LAMP     If after selecting armor and weapons, you have 20 gp's left , you may"
  1352. 13380  PRINT "         buy a lamp for 20 gp's. Having the lamp will allow you to look into"
  1353. 13390  PRINT "         an adjacent room without having to enter it.
  1354. 13400  PRINT
  1355. 13410  PRINT "FLARES   If, after all purchases , you have money left, you may buy flares for"
  1356. 13420  PRINT "         1 gp each. Lighting a flare reveals the contents of all the rooms "
  1357. 13430  PRINT "         surrounding your current location.
  1358. 13440  PRINT
  1359. 13450  PRINT "         Once you have equipped your character, you are ready to enter the"
  1360. 13460  PRINT "         Temple and begin your quest.
  1361. 13470  LOCATE 25,1:INPUT "Press enter to return to main menu.";B$
  1362. 13480  GOTO 12600
  1363. 13490  CLS:COLOR 11,0,1
  1364. 13500  PRINT "                                   THE TEMPLE
  1365. 13510  COLOR 3,0,1:PRINT
  1366. 13520  PRINT "     The temple is arranged in a 8x8x8 three dimensional matrix.  This means     that there are 8 levels with 64 rooms on each level. The temple levels are      are numbered from 1 (the top level) to 8 (the bottom level. Each temple level
  1367. 13530  PRINT " is constructed in a doughnut like fashion, in that the north edge is connect    to the south edge and the east edge is connected to the west edge.  In a sim-   ular fashion, the sinkholes, explain later, on level 8 will "DROP" you down
  1368. 13540  PRINT " to level 1. The only room that does not work in this fashion is always locat-   ed at location (1,4) level 1. Going north from this room will take you out of   the temple and end the game.
  1369. 13550  PRINT
  1370. 13560  PRINT " Each room of the temple will have contents as one of the following.
  1371. 13570  PRINT
  1372. 13580  PRINT "   OR = The entrance / exit room
  1373. 13590  PRINT "   TAB( = An empty room containing nothing
  1374. 13600  PRINT "   U = Stairs going up a level
  1375. 13610  PRINT "   D = Stairs going down a level
  1376. 13620  PRINT "   P = Magic Pool from which you may drink
  1377. 13630  PRINT "   C = A chest you may open.
  1378. 13640  PRINT "   B = A book you may open
  1379. 13650  PRINT "   G = From 1 to 10 gold pieces
  1380. 13660  PRINT "   <0x9F!> = From 1 to 3 flares
  1381. 13670  PRINT "   CSRLIN = A warp to another random location
  1382. 13680  LOCATE 25,1:INPUT "Press return to continue";B$
  1383. 13690  LOCATE 25,1:PRINT "                              "
  1384. 13700  LOCATE 22,1
  1385. 13710  PRINT "   LPRINT = A monster (1 of 9 different types)
  1386. 13720  PRINT "   * = A Drow fighter
  1387. 13730  PRINT "   < = A crystal orb
  1388. 13740  PRINT "   T = A treasure (1 of 8 in the castle)
  1389. 13750  PRINT "   WEND = A Green Slime
  1390. 13760  PRINT "   4 = A Red Dragon
  1391. 13770  PRINT
  1392. 13780  PRINT "     The letters are the abbreviations for the room contents which are display-  ed whenever you look at a map or light a flare. When you look at a map, the     room you are currently located in is bracketed by < >
  1393. 13790  LOCATE 25,1:INPUT "Press enter to return to main menu";B$
  1394. 13800  GOTO 12600
  1395. 13810  CLS:COLOR 11,0,1
  1396. 13820  PRINT "                             PLAYER COMMANDS
  1397. 13830  COLOR 3,0,1:PRINT
  1398. 13840  PRINT "     Whenever the program asks for a command, you must decide what action you    wish to preform. If your choice is not valid, the program will inform you and   allow you to try agian.  The following is a list of commands which the pro-
  1399. 13850  PRINT " gram understands, with a description of their effects and restrictions:"
  1400. 13860  PRINT
  1401. 13870  PRINT " NORTH   Moves you to the room north from your present position. When go north           from the entrance / exit room, the game terminates. In all cases,              the north edge wraps around from the south.
  1402. 13880  PRINT
  1403. 13890  PRINT " SOUTH   Moves you to the room south of your present position. In all cases,             the south edge wraps around to the north edge.
  1404. 13900  PRINT
  1405. 13910  PRINT " EAST    Moves you to the room east of your present position. In all cases, the          east edge wraps around to the west.
  1406. 13920  PRINT
  1407. 13930  PRINT " WEST    Moves you to the room west of your present position. In all cases, the          west edge wraps around to the east.
  1408. 13940  PRINT
  1409. 13950  PRINT " UP/DOWN Causes you to ascend/descend stairs. You must be in a room containing           stairs to use this command.
  1410. 13960  PRINT
  1411. 13970  LOCATE 25,1:INPUT "Press return to continue";B$
  1412. 13980  LOCATE 25,1:PRINT "                           "
  1413. 13990  LOCATE 22,1
  1414. 14000  PRINT " DRINK   Causes you to take a drink from a magic pool. You may repeat this               command as often as you wish, but you must be in a room with a pool             to use this command.
  1415. 14010  PRINT
  1416. 14020  PRINT " MAP     Causes a map of the level you are currently on to be printed. All               unexplored  rooms are displayed as `?'.  All other rooms are dis-               played as their one character symbols. You may look at your map at
  1417. 14030  PRINT
  1418. 14040  PRINT " FLARE   Cause one of your flares to be lit, revealing the contents of all the           rooms surrounding your current location. Because each edge is joined            to the opposite edge, you will always see nine rooms with your loca-
  1419. 14050  PRINT "         as long as you have some and you are not blind or fighting a monster.
  1420. 14060  PRINT
  1421. 14070  PRINT " LAMP    Allows you to shine your lamp into any one of the rooms north, south,           east, and west of your current position, revealing the room contents.           Unlike flares, the lamp may be used repeatedly. You may use your lamp
  1422. 14080  PRINT "         at any time as long as you have one, are not blind, and not attacking           a monster.
  1423. 14090  PRINT
  1424. 14100  PRINT " OPEN    Causes you to open a book or a chest which is in the room with you."
  1425. 14110  PRINT
  1426. 14120  LOCATE 25,1:INPUT "Press return to continue";B$
  1427. 14130  LOCATE 25,1:PRINT "                          "
  1428. 14140  LOCATE 22,1
  1429. 14150  PRINT " GAZE    Causes you to gaze into a crystal orb. When you see yourself in a               bloody mess, you lose 1 or 2 points of strength.  When you see the              location of the ";:COLOR 11,0,1:PRINT "Amulet of Chaos";:COLOR 3,0,1
  1430. 14160  PRINT ", there is only a 50% chance that it "
  1431. 14170  PRINT "         is correct. You cannot gaze when you are blind or when you are not in           a room containing a crystal orb."
  1432. 14180  PRINT
  1433. 14190  PRINT " TELE-   Allows you to teleport directly into a specific room any where in the   PORT    temple. This is the only way you can can enter the room containing              the";:COLOR 11,0,1:PRINT " Amulet of Chaos.";:COLOR 3,0,1
  1434. 14200  PRINT " You must have the Runestaff to teleport!
  1435. 14210  PRINT
  1436. 14220  PRINT " QUIT    Allows you to end the game while you are still in the temple. You will          be asked if you are, in case you change your mind. If you quit, you             will lose the game.
  1437. 14230  PRINT
  1438. 14240  PRINT " HELP    Causes a summary of available commands, abbreviations used in des-               cribing the contents of rooms, and the benefits of possessing each of            the treasures to be displayed at any time.
  1439. 14250  LOCATE 25,1:INPUT "Press enter to return to main menu";B$
  1440. 14260  GOTO 12600
  1441. 14270  CLS:COLOR 11,0,2
  1442. 14280  PRINT "                      MAGIC SPELLS"
  1443. 14290  COLOR 3,0,1:PRINT
  1444. 14300  PRINT "     When ever your intelligence (IQ) becomes 15 or higher, you gain the option  of casting a magic spell on a monster if you have the very first combat         option. The three spells and there effects are as follows:
  1445. 14310  PRINT
  1446. 14320  PRINT " WEB     Traps the monster in a sticky web so that it can't fight back as you            attack it. This spell lasts from 2 to 9 turns and costs you one                 strength (ST) point.
  1447. 14330  PRINT
  1448. 14340  PRINT " FIRE-   Hits the monster with a ball of flame that causes between 2 and 14      BALL    points worth of damage instantly. It costs one strength points and one          point of intelligence.
  1449. 14350  PRINT
  1450. 14360  PRINT " DEATH   is a contest of will between the monster and yourself, whoever has              the lower intelligence dies at once. It costs nothing to use, but it             is very risky. Even with an IQ of 18 (the highest possible), you
  1451. 14370  LOCATE 25,1:INPUT "Press enter to return to main menu";B$
  1452. 14380  GOTO 12600
  1453. 14390  CLS:COLOR 11,0,1
  1454. 14400  PRINT "                       TREASURE, CURSES, AND SUCH
  1455. 14410  COLOR 3,0,1:PRINT
  1456. 14420  PRINT "     In the temple there are eight randomly placed treasures:
  1457. 14430  PRINT
  1458. 14440  PRINT " The Ruby Red - Wards off the curse of lethargy.
  1459. 14450  PRINT " The Pale Pearl - Wards off the curse of the leech.
  1460. 14460  PRINT " The Opal Eye - Cures blindness.
  1461. 14470  PRINT " The Green Gem - Wards off the curse of forgetfulness.
  1462. 14480  PRINT " The Blue Flame - Dissolves books stuck to your hands.
  1463. 14490  PRINT " The Norn Stone - Has no special power.
  1464. 14500  PRINT " The Palantir - Has no special power.
  1465. 14510  PRINT " The Silmaril - Has no special power.
  1466. 14520   PRINT
  1467. 14530  PRINT "     THERE ARE THREE CURSES:"
  1468. 14540  PRINT
  1469. 14550  PRINT " LETHARGY - This gives the monster the first attack which prevents you from                 bribing him or casting a spell on them.
  1470. 14560  PRINT
  1471. 14570  PRINT " LEECH - This takes from 1 to 5 gp's from you each turn until you have no gold           left at all!
  1472. 14580  PRINT
  1473. 14590  LOCATE 25,1:INPUT "Press return to continue";B$
  1474. 14600  LOCATE 25,1:PRINT "                            "
  1475. 14610  LOCATE 20,1
  1476. 14620  PRINT " FORGETFULNESS - This causes you to forget what you know about each level of the          temple.  Your map will slowly turn back to all question marks, How-             ever, the contents of the rooms stay the same.
  1477. 14630  PRINT
  1478. 14640  PRINT "     In addition to nullifying the effects of the curses, the treasures can          also provide protection from two undesirable things which can happen            when you open a book.  These are going blind and which prevent you from"
  1479. 14650  PRINT "     seeing your maps, lighting flares, using your lamp, gazing into orbs, and       being informed or your current location, and secondly, having a book            stuck to your hands, which prevents you to draw your weapon to fight
  1480. 14660  LOCATE 25,1:INPUT "Press enter to return to main menu";B$
  1481. 14670  GOTO 12600
  1482. 14680  CLS:COLOR 11,0,1
  1483. 14690  PRINT "                             DROW MERCHANTS
  1484. 14700  COLOR 3,0,1:PRINT
  1485. 14710  PRINT "      On every level there are Drow Merchants who sell necessary items at in-     flated prices. Normally, the merchants will make you an offer for every         treasure you have, and then, depending on the amount of gold you have, will"
  1486. 14720  PRINT " sell you new armor, a new weapon, a potion of strength, intelligence, and       dexterity (no matter how many potions you buy, the maximum amount for these
  1487. 14730  PRINT " attributes is 18), and a lamp, if you don't already have one. If you chose to   attack the merchant, you will antagonize every one in the temple, and they      will all react as monsters. You will also lose the ability to trade with"
  1488. 14740  PRINT " them. Killing a merchant, however, will give you new platemail, a sword, one    of each kind of potion, and a lamp (if you don't already have one, in add-      ition to his hoard of between 1 and 1000 gold pieces. To end hostilities"
  1489. 14750  PRINT " and reestablish trading privileges, you must bribe any Merchant Drow in the     castle with the treasure of his choice.
  1490. 14760  LOCATE 25,1:INPUT "Press enter to return to main menu";B$
  1491. 14770  GOTO 12600
  1492. 14780  CLS:COLOR 11,0,1
  1493. 14790  PRINT "                         MONSTERS AND THE RUNESTAFF"
  1494. 14800  COLOR 3,0,1:PRINT
  1495. 14810  PRINT "     There are 12 types of monsters in the temple:
  1496. 14820  PRINT
  1497. 14830  PRINT " Green Slime, Orcs, Evil Dwarfs, Goblins, Mind Flayers, Trolls, Giant Spiders    Minotaurs, Driders, Balor Demon, Reds Dragons, and Drow Warriors."
  1498. 14840  PRINT
  1499. 14850  PRINT "     Please note that each time you strike a Drow Warrior or a Red Dragon,       there is a chance that your weapon will be shattered."
  1500. 14860  PRINT
  1501. 14870  PRINT "     Each monster possesses a hoard of from 1 to 1000 gp's which you obtain      when you kill a monster. In addition, one of the monsters is also carring The   Runestaff, (you won't know which until one until you kill it). You must have"
  1502. 14880  PRINT " The Runestaff to teleport, and when you teleport into the room with The         Amulet of Chaos, The Runestaff will disappear. (You must find your way out of   the temple without it)."
  1503. 14890  LOCATE 25,1:INPUT "Press enter to return to main menu";B$
  1504. 14900  GOTO 12600
  1505. 14910  CLS:COLOR 11,0,1
  1506. 14920  PRINT "                         WARPS AND ";:COLOR 27,0,1:PRINT "THE AMULET OF CHAOS"
  1507. 14930  COLOR 3,0,1:PRINT
  1508. 14940  PRINT "      All but one of the rooms donated as `CSRLIN' are truly warps. Walking, fall-    ing, or teleporting into one of these warps will cause you to be instantly      transported to anywhere in the temple at random. The one exception to this"
  1509. 14950  PRINT " rule is the room containing ";:COLOR 11,0,1:PRINT "The Amulet of Chaos";:COLOR 3,0,1:PRINT ". This room is disguised as a"
  1510. 14960  PRINT " warp. Walking into this room causes you to move one room further in the same    direction. To actually enter this room, you must teleport in using The Rune-"
  1511. 14970  PRINT " staff. At this point, you will acquire ";:COLOR 11,0,1:PRINT "The Amulet of Chaos";:COLOR 3,0,1:PRINT ". The Runestaff will"
  1512. 14980  PRINT " disappear at this point. Remember, to win the game, you must leave the temple   with the amulet in your possession."
  1513. 14990  LOCATE 25,1:INPUT "Press enter to return to the main menu";B$
  1514. 15000  GOTO 12600
  1515. 15010  CLS:COLOR 11,0,1
  1516. 15020  PRINT"                             ERROR MESSAGES"
  1517. 15030  COLOR 3,0,1:PRINT
  1518. 15040  PRINT "     Anytime you receive a highlighted message with a `**', it means that the     last thing you typed was unacceptable to the program at the time. For in- "
  1519. 15050  PRINT " stance ";:COLOR 11,0,1:PRINT "** It's hard to gaze without an orb.";:COLOR 3,0,1:PRINT ", this means that you tried to"
  1520. 15060  PRINT " gaze from a room which did not contain a crystal orb. You are always required   to redo your last response when you receive an `**' message.
  1521. 15070  LOCATE 25,1:INPUT "Press enter to return to main menu";B$
  1522. 15080  GOTO 12600
  1523. 15090  CLS:COLOR 11,0,1
  1524. 15100  PRINT "     :GOTO 16030
  1525. 10250  IF A$="5" THEN CLS:GOTO 18030
  1526. 10260  IF A$="6" THEN CLS:GOTO 15030
  1527. 10270  IF A$<>"1" AND A$<>"2" AND A$<>"3" AND A$<>"4" AND A$<>"5" AND A$<>"6"THEN 10190
  1528. 10280  GOSUB 17030:GOTO 12030
  1529. 11000  '
  1530. 11010  REM ** CORRECT RECORD **
  1531. 11020  '
  1532. 11030  CLS:LOCATE 1,1:COLOR 15,0,0:PRINT"GAME #";L:LOCATE 3,1:COLOR 6,0,0::PRINT"GAME     ";
  1533. 11040  LOCATE 5,1:PRINT"SCORE    ";
  1534. 11050  LOCATE 7,1:PRINT"PLAYER   ";
  1535. 11060  LOCATE 9,1:PRINT"DATE     ";
  1536. 11070  ROW=3:COL=8:MAXLEN=26:SELECT$=ALPHA$+NUM$+CHAR$+" ":COLOR 14:IN$=C$(L):PT=1:GOSUB 22040:TC$=IN$
  1537. 11080  ROW=5:COL=8:MAXLEN=7:SELECT$=NUM$:IN$=H$(L):PT=1:GOSUB 22040:TH$=IN$
  1538. 11090  ROW=7:COL=8:MAXLEN=11:SELECT$=ALPHA$+NUM$+CHAR$+" ":IN$=P$(L):PT=1:GOSUB 22040:TP$=IN$
  1539. 11100  ROW=9:COL=8:MAXLEN=8:SELECT$=NUM$+"/":IN$=D$(L):PT=1:GOSUB 22040:TD$=IN$
  1540. 11110  LOCATE 15,1:COLOR 4,0,0:PRINT"Is the above information correct?";
  1541. 11120  A$=INKEY$
  1542. 11130  IF A$="y" OR A$="Y" THEN CLS:H$(L)=TH$:P$(L)=TP$:D$(L)=TD$:IF TC$=C$(L) THEN GOTO 10040:ELSE C$(L)=TC$:GOTO 9030:'If NAME OF GAME is unchanged there is no need to resort
  1543. 11140  IF A$="n" OR A$="N" THEN 11030
  1544. 11150  GOTO 11120
  1545. 12000  '
  1546. 12010  REM ** PRINTING ROUTINE **
  1547. 12020  '
  1548. 12030  G1$="N A M E   O F   T H E   G A M E"  '3 spaces in between words
  1549. 12040  N1$="HIGH SCORER"e. The scoring formula goes   as follows:"
  1550. 15270  PRINT
  1551. 15280  PRINT "     1 point for each gold piece  +  100 times your combined attribute scores"
  1552. 15290  PRINT
  1553. 15300  PRINT "       + 1000 points for each monster killed  - 5 times the turns played"
  1554. 15310  PRINT
  1555. 15320  PRINT " Bonus points are scored as follows:
  1556. 15330  PRINT "
  1557. 15340  PRINT "                  5000 for each treasure
  1558. 15350  PRINT "                 10000 for finding the Runestaff
  1559. 15360  PRINT "                 20000 for finding the Amulet of Chaos
  1560. 15370  PRINT "
  1561. 15380  PRINT " You will then be ranked into one of the following classes:
  1562. 15390  PRINT
  1563. 15400  PRINT "             0 - 20000  Whimp                  20000 - 35000  Peasent
  1564. 15410  PRINT "         35000 - 50000  Ameteur                50000 - 75000  Scout
  1565. 15420  PRINT "         90000 -110000  Adventurer            110000 -125000  Hero
  1566. 15430  PRINT "        125000 -140000  Wizard                140000+  Lord
  1567. 15440  PRINT "
  1568. 15450  PRINT "  The highest score to date is that of Lord NurTROFFcc: 142,498
  1569. 15460  LOCATE 25,1
  1570. 15470  LINE INPUT "Press enter to return to Main Menu";B$
  1571. 15480  GOTO 12600
  1572. 15490  CLS
  1573. 15500  GOTO 1400
  1574. 15925  IF A$="I" GOTO 14910
  1575.